print_data | R Documentation |
print_data() formats the output of either get_datasts_tb() or make_datasts_tb() as HTML. The type of output can be customised to display Dataverse data collections or Dataverse datasets. Similarly output can be restricted to real or toy datasets.
print_data(
datasets_tb,
by_dv_1L_lgl = FALSE,
filter_cdns_ls = NULL,
root_1L_chr = "https://dataverse.harvard.edu/dataverse/",
scroll_height_1L_chr = character(0),
scroll_width_1L_chr = character(0),
toy_data_dv_1L_chr = "fakes",
what_1L_chr = "all",
...
)
datasets_tb |
Datasets (a tibble) |
by_dv_1L_lgl |
By dataverse (a logical vector of length one), Default: FALSE |
filter_cdns_ls |
Filter conditions (a list), Default: NULL |
root_1L_chr |
Root (a character vector of length one), Default: 'https://dataverse.harvard.edu/dataverse/' |
scroll_height_1L_chr |
Scroll height (a character vector of length one), Default: character(0) |
scroll_width_1L_chr |
Scroll width (a character vector of length one), Default: character(0) |
toy_data_dv_1L_chr |
Toy data dataverse (a character vector of length one), Default: 'fakes' |
what_1L_chr |
What (a character vector of length one), Default: 'all' |
... |
Additional arguments |
Datasets (a kable)
datasets_tb <- get_datasets_tb("ready4-dev/ready4")
print_data(datasets_tb, by_dv_1L_lgl = TRUE)
print_data(datasets_tb, what_1L_chr = "real")
print_data(datasets_tb, what_1L_chr = "fakes")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.