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()
Run the code above in your browser using DataLab