dossier_create | R Documentation |
Generates a dossier object (list of one or more datasets).
dossier_create(dataset_list, data_dict_apply = FALSE)
dataset_list |
A list of data frame, each of them being dataset object. |
data_dict_apply |
Whether data dictionary(ies) should be applied to associated dataset(s), creating labelled dataset(s) with variable attributes. Any previous attributes will be preserved. FALSE by default. |
A dataset is a data table containing variables. A dataset object is a data frame and can be associated with a data dictionary. If no data dictionary is provided with a dataset, a minimum workable data dictionary will be generated as needed within relevant functions. Identifier variable(s) for indexing can be specified by the user. The id values must be non-missing and will be used in functions that require it. If no identifier variable is specified, indexing is handled automatically by the function.
A list of data frame(s), containing input dataset(s).
{
# use madshapR_DEMO provided by the package
library(dplyr)
###### Example 1: datasets can be gathered into a dossier which is a list.
dossier <- dossier_create(
dataset_list = list(
dataset_MELBOURNE = madshapR_DEMO$dataset_MELBOURNE,
dataset_PARIS = madshapR_DEMO$dataset_PARIS ))
glimpse(dossier)
###### Example 2: Any data frame can be gathered into a dossier
glimpse(dossier_create(list(iris, mtcars)))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.