Categories

Nov 14, 2019 in R Language

Q: Function in summarise() R Language

1 Answer

Nov 14, 2019

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
 
Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

Madanswer
Nov 14, 2019 in R Language
Jul 28, 2019 in R Language
Nov 14, 2019 in R Language
...