gt_save | R Documentation |
Save the tibble (and update the backing files). The gen_tibble
object is
saved to a file with extension .gt, together with update its .rds and
.bk files. Note that multiple .gt files can be linked to the same .rds
and .bk files; generally, this occurs when we create multiple subsets of
the data. The .gt file then stores the information on what subset of the
full dataset we are interested in, whilst the .rds and .bk file store the
full dataset. To reload a gen_tibble
, you can pass the name of the .gt
file with gt_load()
.
gt_save(x, file_name = NULL, quiet = FALSE)
x |
a |
file_name |
the file name, including the full path. If it does not end with .gt, the extension will be added. |
quiet |
boolean to suppress information about the files |
the file name and path of the .gt file, together with the .rds and .bk files
gt_load()
example_gt <- load_example_gt("gen_tbl")
# remove some individuals
example_gt <- example_gt %>% filter(id != "a")
# save filtered gen_tibble object
gt_save(example_gt, file_name = paste0(tempfile(), "_example_filtered"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.