tycho: Functions to download infectious disease dataset from the...

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

Description

Gather the infectious disease dataset from tycho project (https://www.tycho.pitt.edu/index.php), which only provides the level 2 dataset.

Usage

1
2
3
4
5
get.data(apikey, loc_type, disease, event, city, state, start, end)
get.info(apikey, loc_type, disease, event, city, state)
get.city.name(apikey)
get.state.name(apikey)
get.disease.name(apikey)

Arguments

apikey

the apikey for the dataset in tycho project, you can apply for the key in https://www.tycho.pitt.edu/apikey.php

loc_type

which kind of dataset you want to download. Alternative values are: city and state

disease

Target disease name you want to download. Using the get.diseases function will return all the alternative disease names in tycho project

event

dataset for case or death. ALternative values are: cases and deaths

city

target city name. Using the get.cities function will return all the alternative city names in tycho project

state

target state name. Using the get.states function will return all the alternative state names in tycho project. Actually, if the city name was set, there is no need to set the state name

start

the start year for the dataset

end

the end year for the dataset

Details

Registered users can download a complete dump of Level 1 dataset, but for the level 3 datasets may be requested using the Level 3 data request form. See here.

Value

target infectious disease dataset for get.data function
detail summary descriptions to the dataset for get.info function
a list of available cities for get.city.name function
a list of available states for get.state.name funtion
a list of available disease for get.disease.name function

Note

nothing

Author(s)

Bing Zhang

References

https://www.tycho.pitt.edu/api_help.php

See Also

nothing

Examples

1
2
get.data(apike="your apikey",loc_type="city", disease="measles", event="cases", city="Cincinnati",
start="1980", end="2010")

Spatial-R/IDDC documentation built on May 9, 2019, 1:53 p.m.