View source: R/data-item-cleaning.R
clean_count | R Documentation |
Replaces any values of all 9's with NA
(if keep_unknown
is TRUE
) and converts the rest to integers.
clean_count(count, width, keep_unknown = FALSE)
count |
A character vector of counts (integer characters only). |
width |
Integer giving the character width of the field. |
keep_unknown |
Replace values for "unknown" with |
Integer vector of count
.
If keep_unknown
is FALSE
, values representing unknown counts
are replaced with NA
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.