View source: R/as.data.frame.R
| as_tibble.dataset_df | R Documentation |
dataset_df to a tibbleas_tibble() method for dataset_df objects.
Converts a dataset_df into a tibble. By default, additional metadata
attached to the object is removed unless strip_attributes = FALSE is
specified.
as_tibble(x, ...)
## S3 method for class 'dataset_df'
as_tibble(x, ..., strip_attributes = TRUE, .name_repair = "check_unique")
as.tibble.dataset_df(
x,
...,
strip_attributes = TRUE,
.name_repair = "check_unique"
)
x |
A |
... |
Additional arguments passed to |
strip_attributes |
Logical: should column-level semantic metadata
be stripped? Default: |
.name_repair |
Treatment of problematic column names:
|
A tibble containing the data (and optionally some
attributes) of the dataset_df.
The strip_attributes argument controls which attributes of the dataset_df
object are preserved. When strip_attributes = TRUE (the default), only
column-level information is kept.
The dataset_df class may internally use reserved names for indexing,
identifiers, or metadata. These are never exposed in the resulting tibble.
Column names in the output tibble may be repaired according to
.name_repair.
tibble::as_tibble()
as.data.frame.dataset_df()
# Convert a dataset_df to a tibble
x <- dataset_df(orange_df)
as_tibble(x)
# Keep attributes
as_tibble(x, strip_attributes = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.