For this assignment, I did prepared a Shiny application in which the user will input the Carats of a Diamond stone and it will get its price based on the statistical data.
Loading of the packages
The first part is the declaration of the package which will be used.
library(shiny)
library(UsingR)
Reading of the Data
We began by reading in the data.
The data is in SIN$ but the final results will be in US$ (at a change rate based on the date at Dec. 20 2014 of: USD/SGD = 0.76)
data(diamond)