Description Usage Arguments Value Author(s) See Also Examples
Reads an ASCII text version of SEER data for one or more given years, states and cancer sites. Data is freely available (after completing a signed SEER Research Data Agreement form) at http://seer.cancer.gov/data/access.html.
1 |
file |
A vector of filenames specifying where to find the SEER data. For example, for respiratory cancers between 1973-2010, one could specify the following path from the default directory structure of SEER data |
year |
A numeric vector specifying which years of the data to look at. If not specified, defaults to all years. |
state |
A character vector specifying which states to extract. Should be one or more of "Georgia", "California", "New Jersey", "Kentucky", "Louisiana", "Connecticut", "Michigan", "Hawaii", "Iowa", "New Mexico", "Utah", "Washington". If not specified, defaults to all states. |
cancer |
A character vector specifying which cancers. This is passed to |
site |
A character vector of regular expressions to match cancer site codes on. This takes precidence over |
fips |
A |
Returns a data.frame
of cancer cases with sex, age of diagnosis, year of diagnosis, site, state, county, and 5-digit state+county FIPS code. This format is compatible for use with the getSMR
function from the diseasemapping
package.
Jonathan Lee jonathan@utstat.utoronto.ca
1 2 3 4 5 6 | data(fipslookup)
## Not run:
#file should point to the proper TXT file containing the cancer data you are interested in
seerData <- readSEER(file="RESPIR.TXT",year=2005,state="Kentucky",cancer="Larynx",fips=fipslookup)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.