powered by
Formatting target, by, and over variables for Rrepest.
format_data_repest(df, svy, x, by.over, user_na = F, ...)
Data frame with variables in numeric format for analysis.
(data frame) Data to analyze.
(string) Possible projects to analyse: PIAAC, PISA, TALISSCH, TALISTCH, etc.
(string vector) Target variables.
(string vector) Variables to break analysis by.
(bool) TRUE → show nature of user defined missing values
Optional arguments such as custom weights (cm.weights)
df1 <- format_data_repest(df_pisa18, "PISA", "pv1math", "cnt") df2 <- format_data_repest(df_pisa18, "PISA", "pv1math", c("cnt","st004d01t"))
Run the code above in your browser using DataLab