clean_count {naaccr} | R Documentation |
Clean counts
Description
Replaces any values of all 9's with NA
(if keep_unknown
is TRUE
) and converts the rest to integers.
Usage
clean_count(count, width, keep_unknown = FALSE)
Arguments
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 |
Value
Integer vector of count
.
If keep_unknown
is FALSE
, values representing unknown counts
are replaced with NA
.
[Package naaccr version 2.0.2 Index]