format_data_repest: Formatting target, by, and over variables for Rrepest.

View source: R/repest_auxiliaries.R

format_data_repestR Documentation

Formatting target, by, and over variables for Rrepest.

Description

Formatting target, by, and over variables for Rrepest.

Usage

format_data_repest(df, svy, x, by.over, user_na = F, ...)

Arguments

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)

Value

Data frame with variables in numeric format for analysis.

Examples

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)

Rrepest documentation built on April 4, 2025, 2:07 a.m.