|
63 | 63 | #' ) |
64 | 64 | #' |
65 | 65 | #' @inheritParams .epidatr_shared_params |
| 66 | +#' @param locations character. List of locations to fetch. |
| 67 | +#' See [US Regions and States codes](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#us-regions-and-states) # nolint |
| 68 | +#' for details. |
66 | 69 | #' @return [`tibble::tibble`] |
67 | 70 | #' |
68 | 71 | #' @keywords endpoint |
@@ -124,6 +127,8 @@ pvt_cdc <- function( |
124 | 127 | #' |
125 | 128 | #' @inheritParams .epidatr_shared_params |
126 | 129 | #' @param state string. A two-letter character state abbreviation. |
| 130 | +#' See [US states codes](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#us-states) |
| 131 | +#' for details. |
127 | 132 | #' @param ccn string. A facility CMS certification number. |
128 | 133 | #' @param city string. A city name. |
129 | 134 | #' @param zip string. A 5-digit zip code. |
@@ -598,6 +603,9 @@ pub_covid_hosp_facility <- function( |
598 | 603 | #' ) |
599 | 604 | #' |
600 | 605 | #' @inheritParams .epidatr_shared_params |
| 606 | +#' @param states character. Two-letter state abbreviations. |
| 607 | +#' See [US states codes](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#us-states) |
| 608 | +#' for details. |
601 | 609 | #' |
602 | 610 | #' @inheritSection .epidatr_shared_params Data Versioning |
603 | 611 | #' |
@@ -1131,6 +1139,8 @@ pub_covidcast <- function( |
1131 | 1139 | #' } |
1132 | 1140 | #' @inheritParams .epidatr_shared_params |
1133 | 1141 | #' @param system character. System name to fetch. |
| 1142 | +#' See the [available forecasting systems](https://cmu-delphi.github.io/delphi-epidata/api/delphi.html#forecasting-systems) # nolint |
| 1143 | +#' for details. |
1134 | 1144 | #' @param epiweek [`timeset`]. Epiweek to fetch. Does not support multiple dates. |
1135 | 1145 | #' Make separate calls to fetch data for multiple epiweeks. |
1136 | 1146 | #' @return [`list`] |
@@ -1169,6 +1179,8 @@ pub_delphi <- function( |
1169 | 1179 | #' ) |
1170 | 1180 | #' |
1171 | 1181 | #' @inheritParams .epidatr_shared_params |
| 1182 | +#' @param locations character. List of locations to fetch. |
| 1183 | +#' See the [codes for countries and territories in the Americas](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#countries-and-territories-in-the-americas). # nolint |
1172 | 1184 | #' @return [`tibble::tibble`] |
1173 | 1185 | #' @keywords endpoint |
1174 | 1186 | #' @export |
@@ -1209,6 +1221,10 @@ pub_dengue_nowcast <- function( |
1209 | 1221 | #' ) |
1210 | 1222 | #' |
1211 | 1223 | #' @inheritParams .epidatr_shared_params |
| 1224 | +#' @param locations character. List of locations to fetch. |
| 1225 | +#' See the [codes for countries and territories in the Americas](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#countries-and-territories-in-the-americas). # nolint |
| 1226 | +#' @param names character. List of sensor names to fetch. |
| 1227 | +#' See the [available sensors](https://cmu-delphi.github.io/delphi-epidata/api/dengue_sensors.html#available-sensors). |
1212 | 1228 | #' @return [`tibble::tibble`] |
1213 | 1229 | #' @keywords endpoint |
1214 | 1230 | #' @export |
@@ -1260,6 +1276,8 @@ pvt_dengue_sensors <- function( |
1260 | 1276 | #' pub_ecdc_ili(regions = "austria", epiweeks = epirange(201901, 202001)) |
1261 | 1277 | #' |
1262 | 1278 | #' @inheritParams .epidatr_shared_params |
| 1279 | +#' @param regions character. List of regions to fetch. |
| 1280 | +#' See the [codes for European countries](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#european-countries). # nolint |
1263 | 1281 | #' @return [`tibble::tibble`] |
1264 | 1282 | #' |
1265 | 1283 | #' @inheritSection .epidatr_shared_params Data Versioning |
@@ -1324,6 +1342,9 @@ pub_ecdc_ili <- function( |
1324 | 1342 | #' pub_flusurv(locations = "ca", epiweeks = epirange(201701, 201801)) |
1325 | 1343 | #' } |
1326 | 1344 | #' @inheritParams .epidatr_shared_params |
| 1345 | +#' @param locations character. List of locations to fetch. |
| 1346 | +#' See [geographic codes](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#flusurv-locations) |
| 1347 | +#' for details. |
1327 | 1348 | #' @return [`tibble::tibble`] |
1328 | 1349 | #' |
1329 | 1350 | #' @inheritSection .epidatr_shared_params Data Versioning |
@@ -1413,7 +1434,8 @@ pub_flusurv <- function( |
1413 | 1434 | #' census divisions, lowercase two-letter state or territory abbreviations |
1414 | 1435 | #' for most states and territories,"jfk" for New York City, or "ny_minus_jfk" |
1415 | 1436 | #' for upstate New York. Full list of locations is available |
1416 | | -#' [here](https://github.com/cmu-delphi/delphi-epidata/blob/main/labels/regions.txt). |
| 1437 | +#' [here](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#us-regions-and-states) |
| 1438 | +#' and [here](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#fluview-cities). |
1417 | 1439 | #' @return [`tibble::tibble`] |
1418 | 1440 | #' |
1419 | 1441 | #' @inheritSection .epidatr_shared_params Data Versioning |
@@ -1583,10 +1605,10 @@ pub_fluview <- function( |
1583 | 1605 | #' |
1584 | 1606 | #' @details Google has discontinued Flu Trends and this is now a static |
1585 | 1607 | #' endpoint. Possibile input for locations can be found in |
1586 | | -#' <https://github.com/cmu-delphi/delphi-epidata/blob/main/labels/regions.txt>, |
1587 | | -#' <https://github.com/cmu-delphi/delphi-epidata/blob/main/labels/states.txt>, |
| 1608 | +#' <https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#hhs-regions>, |
| 1609 | +#' <https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#us-states>, |
1588 | 1610 | #' and |
1589 | | -#' <https://github.com/cmu-delphi/delphi-epidata/blob/main/labels/cities.txt>. |
| 1611 | +#' <https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#selected-us-cities>. |
1590 | 1612 | #' |
1591 | 1613 | #' @examplesIf curl::has_internet() && Sys.getenv("DELPHI_EPIDATA_KEY") != "" |
1592 | 1614 | #' |
@@ -1636,6 +1658,9 @@ pub_gft <- function( |
1636 | 1658 | #' ) |
1637 | 1659 | #' |
1638 | 1660 | #' @inheritParams .epidatr_shared_params |
| 1661 | +#' @param locations character. List of locations to fetch. |
| 1662 | +#' See [geographic codes](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#us-states-and-territories) # nolint |
| 1663 | +#' for details. |
1639 | 1664 | #' @param query string. The query to be fetched. |
1640 | 1665 | #' @return [`tibble::tibble`] |
1641 | 1666 | #' @keywords endpoint |
@@ -1680,6 +1705,9 @@ pvt_ght <- function( |
1680 | 1705 | #' pub_kcdc_ili(regions = "ROK", epiweeks = 200436) |
1681 | 1706 | #' |
1682 | 1707 | #' @inheritParams .epidatr_shared_params |
| 1708 | +#' @param regions character. List of regions to fetch. |
| 1709 | +#' See [South Korea's geographic codes](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#republic-of-korea) # nolint |
| 1710 | +#' for details. |
1683 | 1711 | #' @return [`tibble::tibble`] |
1684 | 1712 | #' |
1685 | 1713 | #' @inheritSection .epidatr_shared_params Data Versioning |
@@ -1781,6 +1809,9 @@ pub_meta <- function(fetch_args = fetch_args_list()) { |
1781 | 1809 | #' pub_nidss_dengue(locations = "taipei", epiweeks = epirange(201201, 201301)) |
1782 | 1810 | #' |
1783 | 1811 | #' @inheritParams .epidatr_shared_params |
| 1812 | +#' @param locations character. List of locations to fetch. |
| 1813 | +#' See [Taiwan's geographic codes](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#nidss) |
| 1814 | +#' for details. |
1784 | 1815 | #' |
1785 | 1816 | #' @return [`tibble::tibble`] |
1786 | 1817 | #' @keywords endpoint |
@@ -1820,6 +1851,9 @@ pub_nidss_dengue <- function( |
1820 | 1851 | #' pub_nidss_flu(regions = "taipei", epiweeks = epirange(201501, 201601)) |
1821 | 1852 | #' |
1822 | 1853 | #' @inheritParams .epidatr_shared_params |
| 1854 | +#' @param regions character. List of regions to fetch. |
| 1855 | +#' See [Taiwan's geographic codes](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#nidss) |
| 1856 | +#' for details. |
1823 | 1857 | #' @return [`tibble::tibble`] |
1824 | 1858 | #' |
1825 | 1859 | #' @inheritSection .epidatr_shared_params Data Versioning |
@@ -1929,8 +1963,8 @@ pvt_norostat <- function( |
1929 | 1963 | #' Obtains information on outpatient inluenza-like-illness (ILI) from Delphi's |
1930 | 1964 | #' |
1931 | 1965 | #' @details The full list of location inputs can be accessed at |
1932 | | -#' <https://github.com/cmu-delphi/delphi-epidata/blob/main/src/acquisition/fluview/fluview_locations.py>. |
1933 | | -#' |
| 1966 | +#' <https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#us-regions-and-states> |
| 1967 | +#' and <https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#fluview-cities>. |
1934 | 1968 | #' @examplesIf curl::has_internet() && Sys.getenv("DELPHI_EPIDATA_KEY") != "" |
1935 | 1969 | #' |
1936 | 1970 | #' pub_nowcast(locations = "ca", epiweeks = epirange(201201, 201301)) |
@@ -1971,6 +2005,9 @@ pub_nowcast <- function( |
1971 | 2005 | #' pub_paho_dengue(regions = "ca", epiweeks = epirange(201401, 201501)) |
1972 | 2006 | #' |
1973 | 2007 | #' @inheritParams .epidatr_shared_params |
| 2008 | +#' @param regions character. List of regions to fetch. |
| 2009 | +#' See [Americas' geographic codes](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#countries-and-territories-in-the-americas) # nolint |
| 2010 | +#' for details. |
1974 | 2011 | #' @return [`tibble::tibble`] |
1975 | 2012 | #' |
1976 | 2013 | #' @inheritSection .epidatr_shared_params Data Versioning |
@@ -2035,6 +2072,9 @@ pub_paho_dengue <- function( |
2035 | 2072 | #' ) |
2036 | 2073 | #' |
2037 | 2074 | #' @inheritParams .epidatr_shared_params |
| 2075 | +#' @param locations character. List of locations to fetch. |
| 2076 | +#' See [HHS regions' codes](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#hhs-regions) |
| 2077 | +#' for details. |
2038 | 2078 | #' @return [`tibble::tibble`] |
2039 | 2079 | #' @keywords endpoint |
2040 | 2080 | #' @export |
@@ -2091,6 +2131,12 @@ pvt_quidel <- function( |
2091 | 2131 | #' ) |
2092 | 2132 | #' |
2093 | 2133 | #' @inheritParams .epidatr_shared_params |
| 2134 | +#' @param names character. List of sensor names to fetch. |
| 2135 | +#' See the [data sources available](https://cmu-delphi.github.io/delphi-epidata/api/sensors.html#data-sources) |
| 2136 | +#' for details. |
| 2137 | +#' @param locations character. List of locations to fetch. |
| 2138 | +#' See the codes of the [US regions and states](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#us-regions-and-states) # nolint |
| 2139 | +#' for details. |
2094 | 2140 | #' @return [`tibble::tibble`] |
2095 | 2141 | #' @keywords endpoint |
2096 | 2142 | #' @export |
@@ -2144,6 +2190,9 @@ pvt_sensors <- function( |
2144 | 2190 | #' ) |
2145 | 2191 | #' |
2146 | 2192 | #' @inheritParams .epidatr_shared_params |
| 2193 | +#' @param locations character. List of locations to fetch. |
| 2194 | +#' See the codes of the [US regions and states](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#us-regions-and-states) # nolint |
| 2195 | +#' for details. |
2147 | 2196 | #' @return [`tibble::tibble`] |
2148 | 2197 | #' @keywords endpoint |
2149 | 2198 | #' @export |
@@ -2222,6 +2271,8 @@ pvt_twitter <- function( |
2222 | 2271 | #' |
2223 | 2272 | #' @inheritParams .epidatr_shared_params |
2224 | 2273 | #' @param articles character. Articles to fetch. |
| 2274 | +#' See [available articles](https://cmu-delphi.github.io/delphi-epidata/api/wiki.html#available-articles) |
| 2275 | +#' for details. |
2225 | 2276 | #' @param language string. Language to fetch. |
2226 | 2277 | #' @param hours integer. Optionally, the hours to fetch. |
2227 | 2278 | #' @return [`tibble::tibble`] |
|
0 commit comments