|
6 | 6 | #' \dontrun{ |
7 | 7 | #' pvt_cdc( |
8 | 8 | #' auth = "yourkey", |
9 | | -#' "fl,ca", |
| 9 | +#' locations = "fl,ca", |
10 | 10 | #' epirange(201501, 201601) |
11 | 11 | #' ) %>% fetch() |
12 | 12 | #' } |
@@ -62,6 +62,7 @@ pvt_cdc <- function(auth, locations, epiweeks) { |
62 | 62 | #' @examples |
63 | 63 | #' \donttest{ |
64 | 64 | #' covid_hosp_facility_lookup(state = "fl") %>% fetch() |
| 65 | +#' covid_hosp_facility_lookup(city = "southlake") %>% fetch() |
65 | 66 | #' } |
66 | 67 | #' @param state string. A two-letter character string state abbreviation. |
67 | 68 | #' @param ccn string. A character string for facility CMS certification number. |
@@ -778,7 +779,7 @@ delphi <- function(system, epiweek) { |
778 | 779 | #' @examples |
779 | 780 | #' \dontrun{ |
780 | 781 | #' dengue_nowcast( |
781 | | -#' locations = "?", |
| 782 | +#' locations = "pr", |
782 | 783 | #' epiweeks = epirange(201501, 202001) |
783 | 784 | #' ) %>% fetch() |
784 | 785 | #' } |
@@ -814,8 +815,8 @@ dengue_nowcast <- function(locations, epiweeks) { |
814 | 815 | #' \dontrun{ |
815 | 816 | #' pvt_dengue_sensors( |
816 | 817 | #' auth = "yourkey", |
817 | | -#' names = "?", |
818 | | -#' locations = "?", |
| 818 | +#' names = "ght", |
| 819 | +#' locations = "ag", |
819 | 820 | #' epiweeks = epirange(201501, 202001) |
820 | 821 | #' ) %>% fetch() |
821 | 822 | #' } |
@@ -1019,6 +1020,10 @@ fluview_clinical <- function(regions, epiweeks, issues = NULL, lag = NULL) { |
1019 | 1020 | #' Fetch FluView metadata |
1020 | 1021 | #' |
1021 | 1022 | #' API docs: https://cmu-delphi.github.io/delphi-epidata/api/fluview_meta.html |
| 1023 | +#' @examples |
| 1024 | +#' \donttest{ |
| 1025 | +#' fluview_meta() %>% fetch() |
| 1026 | +#' } |
1022 | 1027 | #' |
1023 | 1028 | #' @return [`epidata_call`] |
1024 | 1029 | #' |
@@ -1158,7 +1163,7 @@ gft <- function(locations, epiweeks) { |
1158 | 1163 | #' auth = "yourkey", |
1159 | 1164 | #' locations = "ca", |
1160 | 1165 | #' epiweeks = epirange(201201, 202001), |
1161 | | -#' query = "?" |
| 1166 | +#' query = "how to get over the flu" |
1162 | 1167 | #' ) %>% fetch() |
1163 | 1168 | #' } |
1164 | 1169 | #' @param auth string. Restricted access key (not the same as API key). |
@@ -1198,7 +1203,7 @@ pvt_ght <- function(auth, locations, epiweeks, query) { |
1198 | 1203 | #' TODO: find a non-trivial region |
1199 | 1204 | #' @examples |
1200 | 1205 | #' \dontrun{ |
1201 | | -#' kcdc_ili(regions = "?", epiweeks = epirange(201201, 202001)) %>% fetch() |
| 1206 | +#' kcdc_ili(regions = "ROC", epiweeks = 200436) %>% fetch() |
1202 | 1207 | #' } |
1203 | 1208 | #' @param regions character vector. The regions to be fetched. |
1204 | 1209 | #' @param epiweeks [`timeset`]. The epiweeks to be fetched. |
@@ -1243,6 +1248,10 @@ kcdc_ili <- function(regions, epiweeks, issues = NULL, lag = NULL) { |
1243 | 1248 | #' |
1244 | 1249 | #' API docs: https://cmu-delphi.github.io/delphi-epidata/api/meta_norostat.html |
1245 | 1250 | #' |
| 1251 | +#' @examples |
| 1252 | +#' \donttest{ |
| 1253 | +#' pvt_meta_norostat(auth = "yourkey") %>% fetch() |
| 1254 | +#' } |
1246 | 1255 | #' @param auth string. Restricted access key (not the same as API key). |
1247 | 1256 | #' @return [`epidata_call`] |
1248 | 1257 | #' |
@@ -1363,8 +1372,8 @@ nidss_flu <- function(regions, epiweeks, issues = NULL, lag = NULL) { |
1363 | 1372 | #' \dontrun{ |
1364 | 1373 | #' pvt_norostat( |
1365 | 1374 | #' auth = "yourkey", |
1366 | | -#' locations = "Minnesota, Ohio, Oregon, Tennessee, and Wisconsin", |
1367 | | -#' epiweeks = epirange(201401, 201501) |
| 1375 | +#' locations = "1", |
| 1376 | +#' epiweeks = 201233 |
1368 | 1377 | #' ) %>% fetch() |
1369 | 1378 | #' } |
1370 | 1379 | #' @param auth string. Your authentication key. |
|
0 commit comments