Description Usage Arguments Value Examples
The input is the Missing_Values column in var_info, which must have a length equal to the number of columns in the data file. This function is for use in [load_cp_data] to ensure only values expected for each trait are available.
1 | parse_NA_values(missing_values)
|
missing_values |
A string containing values that should be recoded as NA separated by a comma |
A vector with the values that represent NA
1 2 3 | # Call parse_NA_values to return a vector of individual proxies for NA
na_values <- parse_NA_values("-1,99,NA")
print(na_values)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.