cols.exceed.level.threshold: Detects what columns in a data.table have more than a certain...

Description Usage Arguments Value

Description

Detects what columns in a data.table have more than a certain number of columns.

Usage

1
2
3
4
5
cols.exceed.level.threshold(
  data.dt,
  threshold = 1,
  cols.to.ignore = c("iteration", "icc")
)

Arguments

data.dt

data.table with minimally participant ID and outcome.

threshold

The number of levels over which the column name will be returned (Default: 1)

cols.to.ignore

Columns to not count (Default: c('iteration', 'icc'))

Value

A vector of strings which are the names of columns with numers of levels exceeding the threshold.


mattmoo/SteppedWedgeAnalysis documentation built on Jan. 14, 2020, 12:25 a.m.