cas.mode: Mode Value

View source: R/descriptive_stats.R

cas.modeR Documentation

Mode Value

Description

Returns the value that occurs most often for each column in the input table and the count for the value.

Usage

cas.mode(CASTable)

Arguments

x

CASTable.

Details

This function operates on numeric and character columns.

Value

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.

Examples

## Not run: 
cas.mode(ct[1:4])
cas.mode(ct$n2)

## End(Not run)

sassoftware/R-swat documentation built on Feb. 26, 2024, 8 a.m.