View source: R/descriptive_stats.R
cas.mode | R Documentation |
Returns the value that occurs most often for each column in the input table and the count for the value.
cas.mode(CASTable)
x |
CASTable. |
This function operates on numeric and character columns.
data.frame
The result includes one row for each variable. One column is named Mode for the most common value. Another column is named Count to show the number of rows with the most common value.
## Not run:
cas.mode(ct[1:4])
cas.mode(ct$n2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.