R/forensics.R

Defines functions geos systems

Documented in geos systems

geos <- function(state=NULL, ...){
    if(is.null(state))
        out <- ppQuery('geos', baseurl='http://projects.propublica.org/forensics/', ...)
    else {
        out <- ppQuery(paste('geos', state, sep='/'),
                       baseurl='http://projects.propublica.org/forensics/', ...)
    }
    return(out)
}

systems <- function(id, ...){
    out <- ppQuery(paste('systems', id, sep='/'),
                   baseurl='http://projects.propublica.org/forensics/', ...)
    return(out[[1]])
}

Try the RPublica package in your browser

Any scripts or data that you put into this service are public.

RPublica documentation built on May 2, 2019, 2:34 a.m.