| n_obs_x | R Documentation |
Computes the number of valid (i.e. non-missing) observations for the column/variable of interest.
n_obs_x(df, by, x, svy = NULL)
df |
(data frame) Data to analyse with lowercase column names. |
by |
(string vector) Variable(s) used to tabulate the variable of interest. |
x |
(string) Variable of interest for which to compute the number of valid (i.e. non-missing) observations. |
svy |
(string) Survey setting, must be one of the following: ALL, IALS, ICCS, ICILS, IELS, PBTS, PIAAC, PIRLS, PISA, PISAOOS, PISA2015, SSES, SSES2023, SVY, TALISSCH, TALISTCH, TALISEC_LEADER, TALISEC_STAFF, TIMSS. |
Data frame containing the number of valid (i.e. non-missing) observations for the variable of interest.
n_obs_x(df = df_talis18, by = "cntry",x = "tt3g01", svy = "TALISTCH")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.