View source: R/as_data_frame.R
| as_data_frame | R Documentation |
Wrapper around as.data.frame.
In contrast it sets stringsAsFactors=FALSE and allows to
pass a vectors of column names.
as_data_frame(x, col.names = NULL, ...)
x |
[ |
col.names |
[ |
... |
[ |
A data frame.
x = list(a = 1:2, b = c("K", "L"))
y = as_data_frame(x, col.names = c("C1", "C2"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.