R: data
Revision as of 10:06, 28 November 2019 by Onnowpurbo (talk | contribs)
data()
# Loading data(mtcars) # Print the first 6 rows head(mtcars, 6)
# 1. Loading
data("mtcars")
# 2. Print
head(mtcars)
summary(mtcars)
# Number of rows (observations) nrow(mtcars) # Number of columns (variables) ncol(mtcars)