View source: R/as.data.frame.R
| as.data.frame.dataset_df | R Documentation |
dataset_df to a base data.frameConverts a dataset_df into a plain data.frame. By default this
strips semantic metadata (label, unit, concept/definition, namespace) from
each column, but this can be controlled via the
strip_attributes argument.
Dataset-level metadata remains attached as inert attributes.
## S3 method for class 'dataset_df'
as.data.frame(
x,
...,
strip_attributes = TRUE,
optional = FALSE,
stringsAsFactors = FALSE
)
x |
A |
... |
Passed to |
strip_attributes |
Logical: should column-level semantic metadata
be stripped? Default: |
optional |
logical. If |
stringsAsFactors |
logical: should the character vector be converted to a factor? |
A base R data.frame without the dataset_df class.
data(orange_df)
as.data.frame(orange_df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.