as.naaccr_record: Coerce to a naaccr_record dataset Convert objects into...

Description Usage Arguments Value See Also

View source: R/naaccr_record.R

Description

Coerce to a naaccr_record dataset Convert objects into naaccr_record objects, if a method exists.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
as.naaccr_record(x, keep_unknown = FALSE, version = NULL,
  format = NULL, ...)

## S3 method for class 'list'
as.naaccr_record(x, keep_unknown = FALSE,
  version = NULL, format = NULL, ...)

## S3 method for class 'data.frame'
as.naaccr_record(x, keep_unknown = FALSE,
  version = NULL, format = NULL, ...)

Arguments

x

An R object.

keep_unknown

Logical indicating whether values of "unknown" should be a level in the factor or NA.

version

An integer specifying the NAACCR format version for parsing the records. Use this or format, not both. If both version and format are NULL (default), the most recent NAACCR format will be used.

format

A record_format object for parsing the records.

...

Additional arguments passed to or from methods.

Value

An object of class naaccr_record

See Also

naaccr_record


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