Difference between revisions of "R: data"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) (Created page with " 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 (obs...") |
Onnowpurbo (talk | contribs) |
||
Line 14: | Line 14: | ||
# Number of rows (observations) | # Number of rows (observations) | ||
nrow(mtcars) | nrow(mtcars) | ||
− | |||
# Number of columns (variables) | # Number of columns (variables) | ||
ncol(mtcars) | ncol(mtcars) |
Revision as of 10:06, 28 November 2019
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)