in R Language by
Q:
Function in summarise() R Language

▼ Show 1 Answer

0 votes
by

The verb summarise() is compatible with almost all the functions in R. Here is a short list of useful functions you can use together with summarise():

Objective Function Description
Basic mean() Average of vector x
median() Median of vector x
sum() Sum of vector x
variation sd() standard deviation of vector x
IQR() Interquartile of vector x
Range min() Minimum of vector x
max() Maximum of vector x
quantile() Quantile of vector x
Position first() Use with group_by() First observation of the group
last() Use with group_by(). Last observation of the group
nth() Use with group_by(). nth observation of the group
Count n() Use with group_by(). Count the number of rows
n_distinct() Use with group_by(). Count the number of distinct observations
 
Learn More with Madanswer

Related questions

0 votes
asked Nov 14, 2019 in R Language by MBarbieri
...