Cheatography
https://cheatography.com
Aggregate Functions in Summarise
mean(x) - Gives mean value
max(x) - Gives maximum value
median(x) - Gives median value
min(x) - Gives Minimum value
sd(x) - Gives Standard Deviation
var(x) - Gives Variance
IQR(x) - Inter Quartile range
diff(range(x) - Gives the range
|
|
|
Aggregate Functions in dplyr
dplyr provides several helpful aggregate functions of its own.
first(x) - Returns First element
last(x) - Returns Last element
nth(x,n) - Returns nth element
n() - Returns number of rows
n_distinct(x) - Returns the count of unique values in the vector |
|
Created By
Metadata
Favourited By
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by shanly3011