summary()
In this page:
summary()
summary() produces a quick statistical overview of a numeric vector or data frame -- minimum, 1st quartile, median, mean, 3rd quartile, and maximum. Applied to a whole data frame, it summarizes every column at once. It's usually the very first function run after loading a new dataset to get a quick sense of its shape.
Note: summary(df) run on a whole data frame gives you a quick per-column overview in one call.
Example: summary()
values <- c(23, 5, 67, 12, 45, 30, 8)
print(summary(values))
Login to try C/C++/Java/PHP code in the editor
🔒
Chapter Quiz — Complete all 7 topics to unlock
0/7 topics done
Complete these topics first: