chicago: Chicago 1987-2000 from the NMMAPS database

Description Usage Format Examples

Description

Daily measurements of death, temperature, dewpoint, and PM10 pollution from Chicago, 1987 to 2000. Data taken from the NMMAPS database using NMMAPSdata, a package written by Roger Peng and available at: http://www.ihapss.jhsph.edu/data/NMMAPS/R/.

Usage

1

Format

A data frame indicating the date, temperature, dewpoint, and PM10 pollution from Chicago. Frame also includes the mask variable needed for estimating a sp basis, see spsmooth.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
    # This provides the code that generated this set originally using 
    # the now-deprecated 'NMMAPSlite' package, and is included here for historical
    # reference.
    # 
    # library("NMMAPSlite")
    # initDB()   # ** this creates a directory for a data archive
    # chic <- readCity("chic", collapseAge=TRUE)
    # chic <- chic[, c("date", "death", "time", "tmpd", "dptp", "dow", "pm10tmean")]
    # mask <- rep(FALSE, length(chic[, "pm10tmean"]))
    # mask[!is.na(chic[, "pm10tmean"])] <- TRUE
    # chic <- cbind(chic, mask)

    # save(chic, file="chicagoNMMAPS.RData")

spsmooth documentation built on April 15, 2017, 2:51 a.m.