central | R Documentation |
Function generates central values of a variable. If the variable is numeric with
more than n_unique_fac
values, then the median is returned. If the variable is
a factor or numeric with fewer than or equal to n_unique_fac
unique values,
then the modal value is returned.
central(x, n_unique_fac = 10, ...)
x |
A vector of values. |
n_unique_fac |
number of unique values below which the variable will be treated like a factor. |
... |
currently unimplemented. |
A scalar value giving the central value of the variable.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.