View source: R/gt_has_imputed.R
gt_set_imputed | R Documentation |
gen_tibble
to use imputed dataThis function sets or unsets the use of imputed data. For some analysis, such as PCA, that does not allow for missing data, we have to use imputation, but for other analysis it might be preferable to allow for missing data.
gt_set_imputed(x, set = NULL)
x |
a |
set |
a boolean defining whether imputed data should be used |
the gen_tibble, invisibly
example_gt <- load_example_gt("gen_tbl")
# Impute the gen_tibble
example_gt <- example_gt %>% gt_impute_simple()
# Check whether the gen_tibble uses imputed values
example_gt %>% gt_uses_imputed()
# Set the gen_tibble to use imputed values
example_gt %>% gt_set_imputed(TRUE)
# And check that the gen_tibble uses imputed values again
example_gt %>% gt_uses_imputed()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.