save_weights | R Documentation |
This will save all variables with names containing 'weight_'
save_weights(data, format = c("rds", "dta"),
file_name = paste0("weights.", format), include_reps = TRUE)
data |
the |
format |
save as .rds file (R) or .dta file (Stata). |
file_name |
the path to where the file should be saved. |
include_reps |
logical. Should replicate weights by saved if found? |
a .dta or .rds file, depending on format
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.