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

View source: R/naaccr_record.R

as.naaccr_recordR Documentation

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 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 Nov. 23, 2022, 5:06 p.m.