View source: R/repest_auxiliaries.R
format_data_repest | R Documentation |
Formatting target, by, and over variables for Rrepest.
format_data_repest(df, svy, x, by.over, user_na = F, ...)
df |
(data frame) Data to analyze. |
svy |
(string) Possible projects to analyse: PIAAC, PISA, TALISSCH, TALISTCH, etc. |
x |
(string vector) Target variables. |
by.over |
(string vector) Variables to break analysis by. |
user_na |
(bool) TRUE → show nature of user defined missing values |
... |
Optional arguments such as custom weights (cm.weights) |
Data frame with variables in numeric format for analysis.
df1 <- format_data_repest(df_pisa18, "PISA", "pv1math", "cnt")
df2 <- format_data_repest(df_pisa18, "PISA", "pv1math", c("cnt","st004d01t"))
df3 <- format_data_repest(df_pisa18, "PISA", "pv1math", c("cnt","st004d01t","iscedl"))
df4 <- format_data_repest(df_talis18, "TALISTCH", "tt3g02", "cntry", isced = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.