66# ' \dontrun{
77# ' pvt_cdc(
88# ' auth = "yourkey",
9- # ' "fl,ca",
9+ # ' locations = "fl,ca",
1010# ' epirange(201501, 201601)
1111# ' ) %>% fetch()
1212# ' }
@@ -62,6 +62,7 @@ pvt_cdc <- function(auth, locations, epiweeks) {
6262# ' @examples
6363# ' \donttest{
6464# ' covid_hosp_facility_lookup(state = "fl") %>% fetch()
65+ # ' covid_hosp_facility_lookup(city = "southlake") %>% fetch()
6566# ' }
6667# ' @param state string. A two-letter character string state abbreviation.
6768# ' @param ccn string. A character string for facility CMS certification number.
@@ -583,7 +584,7 @@ covid_hosp_state_timeseries <- function(states, dates, issues = NULL) {
583584# ' covidcast_meta() %>% fetch()
584585# ' }
585586# '
586- # ' @seealso [covidcast()]
587+ # ' @seealso [covidcast()],[covidcast_epidata()]
587588# ' @export
588589covidcast_meta <- function () {
589590 create_epidata_call(
@@ -614,6 +615,7 @@ covidcast_meta <- function() {
614615# ' Fetch covidcast data
615616# '
616617# ' API docs: <https://cmu-delphi.github.io/delphi-epidata/api/covidcast.html>
618+ # '
617619# ' COVIDcast public dashboard: <https://delphi.cmu.edu/covidcast/>
618620# '
619621# ' @examples
@@ -626,11 +628,19 @@ covidcast_meta <- function() {
626628# ' geo_values = "ca,fl",
627629# ' time_values = epirange(20200601, 20200801)
628630# ' ) %>% fetch()
631+ # ' covidcast(
632+ # ' data_source = "jhu-csse",
633+ # ' signals = "confirmed_7dav_incidence_prop",
634+ # ' geo_type = "state",
635+ # ' time_type = "day",
636+ # ' geo_values = "*",
637+ # ' time_values = epirange(20200601, 20200801)
638+ # ' ) %>% fetch()
629639# ' }
630640# ' @param data_source string. The data source to query (see:
631641# ' <https://cmu-delphi.github.io/delphi-epidata/api/covidcast_signals.html>).
632642# ' @param signals string. The signals to query from a specific source (see:
633- # ' <https://cmu-delphi.github.io/delphi-epidata/api/covidcast-signals>).
643+ # ' <https://cmu-delphi.github.io/delphi-epidata/api/covidcast-signals.html >).
634644# ' @param geo_type string. The geographic resolution of the data (see:
635645# ' <https://cmu-delphi.github.io/delphi-epidata/api/covidcast_geography.html>).
636646# ' @param time_type string. The temporal resolution of the data (either "day" or
@@ -650,7 +660,7 @@ covidcast_meta <- function() {
650660# ' `issues`.
651661# ' @return [`epidata_call`]
652662# '
653- # ' @seealso [covidcast_meta()], [epirange()]
663+ # ' @seealso [covidcast_meta()], [covidcast_epidata()], [ epirange()]
654664# '
655665# ' @export
656666covidcast <- function (
@@ -770,7 +780,7 @@ delphi <- function(system, epiweek) {
770780# ' @examples
771781# ' \dontrun{
772782# ' dengue_nowcast(
773- # ' locations = "? ",
783+ # ' locations = "pr ",
774784# ' epiweeks = epirange(201501, 202001)
775785# ' ) %>% fetch()
776786# ' }
@@ -806,8 +816,8 @@ dengue_nowcast <- function(locations, epiweeks) {
806816# ' \dontrun{
807817# ' pvt_dengue_sensors(
808818# ' auth = "yourkey",
809- # ' names = "? ",
810- # ' locations = "? ",
819+ # ' names = "ght ",
820+ # ' locations = "ag ",
811821# ' epiweeks = epirange(201501, 202001)
812822# ' ) %>% fetch()
813823# ' }
@@ -1011,6 +1021,10 @@ fluview_clinical <- function(regions, epiweeks, issues = NULL, lag = NULL) {
10111021# ' Fetch FluView metadata
10121022# '
10131023# ' API docs: https://cmu-delphi.github.io/delphi-epidata/api/fluview_meta.html
1024+ # ' @examples
1025+ # ' \donttest{
1026+ # ' fluview_meta() %>% fetch()
1027+ # ' }
10141028# '
10151029# ' @return [`epidata_call`]
10161030# '
@@ -1150,7 +1164,7 @@ gft <- function(locations, epiweeks) {
11501164# ' auth = "yourkey",
11511165# ' locations = "ca",
11521166# ' epiweeks = epirange(201201, 202001),
1153- # ' query = "? "
1167+ # ' query = "how to get over the flu "
11541168# ' ) %>% fetch()
11551169# ' }
11561170# ' @param auth string. Restricted access key (not the same as API key).
@@ -1190,7 +1204,7 @@ pvt_ght <- function(auth, locations, epiweeks, query) {
11901204# ' TODO: find a non-trivial region
11911205# ' @examples
11921206# ' \dontrun{
1193- # ' kcdc_ili(regions = "? ", epiweeks = epirange(201201, 202001) ) %>% fetch()
1207+ # ' kcdc_ili(regions = "ROK ", epiweeks = 200436 ) %>% fetch()
11941208# ' }
11951209# ' @param regions character vector. The regions to be fetched.
11961210# ' @param epiweeks [`timeset`]. The epiweeks to be fetched.
@@ -1235,6 +1249,10 @@ kcdc_ili <- function(regions, epiweeks, issues = NULL, lag = NULL) {
12351249# '
12361250# ' API docs: https://cmu-delphi.github.io/delphi-epidata/api/meta_norostat.html
12371251# '
1252+ # ' @examples
1253+ # ' \donttest{
1254+ # ' pvt_meta_norostat(auth = "yourkey") %>% fetch()
1255+ # ' }
12381256# ' @param auth string. Restricted access key (not the same as API key).
12391257# ' @return [`epidata_call`]
12401258# '
@@ -1355,8 +1373,8 @@ nidss_flu <- function(regions, epiweeks, issues = NULL, lag = NULL) {
13551373# ' \dontrun{
13561374# ' pvt_norostat(
13571375# ' auth = "yourkey",
1358- # ' locations = "Minnesota, Ohio, Oregon, Tennessee, and Wisconsin ",
1359- # ' epiweeks = epirange(201401, 201501)
1376+ # ' locations = "1 ",
1377+ # ' epiweeks = 201233
13601378# ' ) %>% fetch()
13611379# ' }
13621380# ' @param auth string. Your authentication key.
0 commit comments