naaccr_record {naaccr} | R Documentation |
Analysis-ready NAACCR records
Description
Subclass of data.frame
for doing analysis with NAACCR records.
Usage
naaccr_record(..., keep_unknown = FALSE, version = NULL, format = NULL)
Arguments
... |
Arguments of the form |
keep_unknown |
Logical indicating whether values of "unknown" should be
a level in the factor or |
version |
An integer specifying the NAACCR format version for parsing
the records. Use this or |
format |
A |
Details
naaccr_record
creates a data.frame
of cancer incidence records
ready for analysis:
columns are of appropriate classes, coded values are replaced with factors,
and unknowns are replaced with NA
.
Value
A naaccr_record
with columns named using the NAACCR XML scheme.
It inherits from data.frame
.