clean_count: Clean counts

Description Usage Arguments Value

View source: R/data-item-cleaning.R

Description

Replaces any values of all 9's with NA (if keep_unknown is TRUE) and converts the rest to integers.

Usage

1

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 NA?

Value

Integer vector of count. If keep_unknown is FALSE, values representing unknown counts are replaced with NA.


naaccr documentation built on Jan. 11, 2020, 9:17 a.m.