asNoFactorDataFrame | R Documentation |
Use as.data.frame
with stringsAsFactors = FALSE
asNoFactorDataFrame(...)
... |
passed to |
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.