View source: R/transformations.R
transform_false_zeros_to_na | R Documentation |
Recodes all zeros in the selected variable into missing values (NAs) if (and only if) all values are zeros.
transform_false_zeros_to_na(lissy_files, variable)
lissy_files |
A list of LIS or LWS files. |
variable |
A character string with the name of the variable that should be adjusted. |
experimental
Some LIS/LWS datasets have variables with only '0' values. These do not represent 0s but NAs. This function transform the 0s into NAs if it finds that all values are 0s and there are no other valid values.
A list of tibbles with the adjusted variable.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.