asNoFactorDataFrame: Convert to Data Frame without Factors

View source: R/dataFrame.R

asNoFactorDataFrameR Documentation

Convert to Data Frame without Factors

Description

Use as.data.frame with stringsAsFactors = FALSE

Usage

asNoFactorDataFrame(...)

Arguments

...

passed to as.data.frame

Examples

data_matrix <- matrix(LETTERS[1:6], nrow = 2)

# as.data.frame() by default converts character to factor
str(as.data.frame(data_matrix))

# asNoFactorDataFrame keeps character as character
str(asNoFactorDataFrame(data_matrix))


KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.