getFields: Get fields from SEER SAS file

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/getFields.R

Description

Converts the SAS file in the SEER ‘incidence’ directory into a data frame in R.

Usage

1
getFields(seerHome="~/data/SEER")

Arguments

seerHome

The directory that contains the SEER ‘population’ and ‘incidence’ directories.

Details

SEER provides a SAS file for reading SEER ASCII data files into SAS. This file is parsed by getFields() to generate a data frame in R that contains all of the SEER fields. This data frame describes these fields in terms of their names (short and long forms), their starting points, and their widths.

Value

A data frame with one row for each field and columns that contain corresponding starting positions, widths, sas names, short names, and expansions thereof.

Author(s)

Tom Radivoyevitch (radivot@ccf.org)

See Also

SEERaBomb-package, mkSEER, pickFields

Examples

1
2
3
4
5
6
## Not run: 
library(SEERaBomb)
(df=getFields())
head(df,20)

## End(Not run)

SEERaBomb documentation built on Dec. 16, 2019, 1:21 a.m.