Vladimir Djurovic
2014/11/20
The Shiny application for the project does the following:
Application allows user to select number of rows to display by using the slider. This is equvalent to the following code:
library(datasets)
data(mtcars)
head(mtcars[,1:6], n = 5)
mpg cyl disp hp drat wt
Mazda RX4 21.0 6 160 110 3.90 2.620
Mazda RX4 Wag 21.0 6 160 110 3.90 2.875
Datsun 710 22.8 4 108 93 3.85 2.320
Hornet 4 Drive 21.4 6 258 110 3.08 3.215
Hornet Sportabout 18.7 8 360 175 3.15 3.440
Users can also select to see only cars with specific number of cylinders, like shown in the following code.
data <- subset(mtcars,cyl == c(4,6));
head(data[,1:5], n=5)
mpg cyl disp hp drat
Mazda RX4 Wag 21.0 6 160.0 110 3.90
Datsun 710 22.8 4 108.0 93 3.85
Hornet 4 Drive 21.4 6 258.0 110 3.08
Valiant 18.1 6 225.0 105 2.76
Merc 230 22.8 4 140.8 95 3.92
Application supports reactive changes to selection of cylinders.