Learn R Programming

naaccr (version 3.1.1)

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

Description

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

Usage

as.naaccr_record(x, keep_unknown = FALSE, version = NULL, format = NULL, ...)

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

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

Value

An object of class naaccr_record

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.

See Also

naaccr_record