mean_or_mode | R Documentation |
x
Compute the mode or mean of x
mean_or_mode(x) ## Default S3 method: mean_or_mode(x) ## S3 method for class 'character' mean_or_mode(x) ## S3 method for class 'factor' mean_or_mode(x) ## S3 method for class 'logical' mean_or_mode(x) ## S3 method for class 'data.frame' mean_or_mode(x)
x |
extract the mean or the mode of vector or data.frame x depending on its type |
numeric vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.