mkSEERold: Make SEER binaries as before

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

View source: R/mkSEERold.R

Description

Converts SEER ASCII text files into smaller R binaries. This is being maintained to avoid fixing old scripts. Please use mkSEER for new scripts.

Usage

1
2
mkSEERold(df,seerHome="~/data/SEER",
            dataset=c("00","73","92"),SQL=TRUE, mkDFs=FALSE)

Arguments

df

A data frame that was the output of pickFields. This determines which fields to transfer.

seerHome

The directory that contains the SEER ‘population’ and ‘incidence’ directories. This should be writable by the user.

dataset

The SEER database to use, specified as a string of the last two digits of the starting year, i.e. "73" = 1973-2011, "92" = 1992-2011, and "00" = 2000-2011. This determines the subdirectory in ‘incidence’ and ‘population’ from which data is taken and is also the name of the subdirectory of seerHome to which the R data files will be written, e.g. "00" processes the 2000 database and places the binary results in /data/SEER/00.

SQL

TRUE if an SQLite database is to be created. The file ‘all.db’ produced in this case can be significantly larger than the sum of the ‘*.RData’ files also produced.

mkDFs

TRUE if you wish to make data frame binaries.

Details

See mkSEER.

Value

None. This function produces R binary data files.

Author(s)

Tom Radivoyevitch (radivot@ccf.org)

See Also

SEERaBomb-package,mkSEER,getFields,pickFields

Examples

1
2
3
4
5
6
7
## Not run: 
library(SEERaBomb)
(df=getFields())
(df=pickFields(df))
for (i in c("73","92","00")) mkSEERold(df,dataset=i)

## End(Not run)

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