View source: R/augment_data_helper.R
augment_data_helper | R Documentation |
Helper function for check_augment_data_specification()
. There should be no need
to ever use this directly in tests. Takes a dataset and returns a list
with three copies of the dataset. Optionally introduces NA
values into
the dataset. Useful for checking that tibbles, data frames, and data frames with
rownames are treated equivalently.
augment_data_helper(data, add_missing)
data |
A data set as a |
add_missing |
Whether or not to set some values in |
A list with three copies of data
:
tibble: the data in a tibble::tibble()
.
no_row: the data in a data.frame()
without row names.
row_nm: the data in a data.frame
, with row names.
.row_names_info()
, rownames()
, tibble::rownames_to_column()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.