df_force_factor: force selected columns of a data frame as factor

Description Usage Arguments

View source: R/formatting_p.R

Description

this is just a general (coarse) approach; if need to specify levels, do it manually.

Usage

1
df_force_factor(dat, cols)

Arguments

dat

a data frame

cols

either an index vector or a string character for colnames to be applied with as.factor


nickytong/GenAnalysis documentation built on July 20, 2019, 8:57 a.m.