Learn R Programming

TwoArmSurvSim (version 0.2)

column_freq: Calculate the Combination Frequency of Several Columns within a Data Frame

Description

Calculate the combination frequency of several columns in a data frame.

Usage

column_freq(x,namelist,keepID=FALSE)

Arguments

x

Input data as a data frame.

namelist

A list of column names that need to be counted.

keepID

If TRUE, the output will keep the unique ID for the column combination.