Related Articles
factor()
The factor() function will convert a quantitative variable into a factor (a categorical variable). This is often needed when categorical variables are dummy coded as numeric values so R treats them as a quantitative variable. For example, when a ...
R function
R functions are commands in R that do specific tasks; these are often written by people in the R community.
numeric (in R)
Numeric (in R) is a type of R object that is a quantitative variable.
object (in R)
R objects are ways of saving information in R. R objects can be individual values (e.g., MyNumber <- 3) or a vector (e.g., MyVector <- c(1:10)) or even a data frame (e.g., MyCopyOfFingers <- Fingers).
Using the R Sandbox
The R Sandbox The R Sandbox is a separate R window you can use to experiment with R code and play around with ideas from the course. It comes pre-loaded with the base R packages and all of the packages and datasets we reference in the textbook. ...