Learn R Programming

SEERaBomb (version 2015.2)

getFields: Get fields from SEER SAS file

Description

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

Usage

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

Arguments

seerHome
The directory that contains the SEER population and incidence directories.

Value

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

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.

See Also

SEERaBomb-package, mkSEER, pickFields

Examples

Run this code
library(SEERaBomb)
(df=getFields())
head(df,20)

Run the code above in your browser using DataLab