0 votes
in R Language by
Function in summarise() R Language

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():

ObjectiveFunctionDescription
Basicmean()Average of vector x
median()Median of vector x
sum()Sum of vector x
variationsd()standard deviation of vector x
IQR()Interquartile of vector x
Rangemin()Minimum of vector x
max()Maximum of vector x
quantile()Quantile of vector x
Positionfirst()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
Countn()Use with group_by(). Count the number of rows
n_distinct()Use with group_by(). Count the number of distinct observations
 

Related questions

0 votes
asked Nov 14, 2019 in R Language by MBarbieri
+3 votes
asked Jul 28, 2019 in R Language by Aarav2017
...