Illya Mowerman, Ph.D.
University of Bridgeport
An object:
Packages are functions that are created be the R community and have made them available to all
Installng packages is easy:
install.packages('dplyr' , repos='http://cran.us.r-project.org')
The downloaded binary packages are in
/var/folders/8c/w4htphd93r7cq7tcyp65xr780000gn/T//Rtmp2c6JT9/downloaded_packages
To be able to use the functions of a package, you must load it first
library(dplyr)
There are many ways to get data into R:
The easiest way to import data using the Import Dataset functionality within RStudio. You will find this under the Environment Tab
For more details on authoring R presentations please visit https://support.rstudio.com/hc/en-us/articles/200486468.
summary(cars)
speed dist
Min. : 4.0 Min. : 2.00
1st Qu.:12.0 1st Qu.: 26.00
Median :15.0 Median : 36.00
Mean :15.4 Mean : 42.98
3rd Qu.:19.0 3rd Qu.: 56.00
Max. :25.0 Max. :120.00