View source: R/to.data.frame.R
to.data.frame | R Documentation |
S3
generic; convert to data.frame move column to rownames
Useful when working with data.table
s; cannot have rownames
. Other methods (as.data.frame
, data.table::setDF
) allow to convert to a data.frame
but then another step is necessary to move an identifier column to rownames
. This function allows the two in one step.
to.data.frame(x, ...) ## S3 method for class 'data.table' to.data.frame(x, id.col = NULL, drop.id.col = TRUE)
x |
type: data.table A |
... |
data.table
Dereck de Mezquita
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.