is_dossier | R Documentation |
Tests if the input object is a valid dossier. This function mainly helps validate input within other functions of the package but could be used to check if a dossier is valid.
is_dossier(object)
object |
A potential dossier to be evaluated. |
A dossier is a named list containing at least one data frame or more, each of them being datasets. The name of each tibble will be use as the reference name of the dataset.
A logical.
{
# use madshapR_DEMO provided by the package
# Any list of data frame can be a dossier by definition.
library(stringr)
is_dossier(madshapR_DEMO[str_detect(names(madshapR_DEMO),"dataset")])
is_dossier(list(dataset_1 = iris, dataset_2 = mtcars))
is_dossier(iris)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.