meanOrMode | R Documentation |
Return mean if variable is numeric or mode if variable is character or factor.
meanOrMode(x)
x |
(numeric, character or factor). Vector from which the mean or mode will be computed for. |
(numeric for mean or character for mode). Mean or mode value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.