View source: R/transformations.R
implement_top_code_with_iqr_pfile | R Documentation |
Lower-level functions used within 'implement_top_code_with_iqr()' and 'implement_bottom_code_with_iqr()'.
implement_top_code_with_iqr_pfile(
file,
file_name,
variable,
times = 3,
variable_level = NULL,
weight = NULL
)
implement_top_code_with_iqr_hfile(
file,
file_name,
variable,
times = 3,
weight = NULL
)
implement_bottom_code_with_iqr_pfile(
file,
file_name,
variable,
times = 3,
variable_level = NULL,
weight = NULL
)
implement_bottom_code_with_iqr_hfile(
file,
file_name,
variable,
times = 3,
weight = NULL
)
file |
A tibble or data.frame with a LIS or LWS file. |
file_name |
A string with the name of the LIS or LWS file. |
variable |
A string with the variable to which top coding should be applied. |
times |
A numeric indicating the scale factor for IQR. Defaults to 3. |
variable_level |
A string with the level of the variable. Should be either 'household' or 'person'. If NULL (default), the function will try to guess the level of the variable. This is done by comparing the value in 'variable' with pre-set lists of variables. |
weight |
A string with the name of the variable in 'file' that should be used as sample weights. |
A tibble containing the file with the recoded variable.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.