Learn R Programming

SEERaBomb (version 2016.1)

mkSEERold: Make SEER binaries as before

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

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.

Value

Details

See mkSEER.

See Also

SEERaBomb-package,mkSEER,getFields,pickFields

Examples

Run this code
## Not run: 
# library(SEERaBomb)
# (df=getFields())
# (df=pickFields(df))
# for (i in c("73","92","00")) mkSEERold(df,dataset=i)
# ## End(Not run)

Run the code above in your browser using DataLab