Skip to content

Commit 73ea679

Browse files
authored
Merge pull request #218 from cmu-delphi/ndefries/avail-endpoint-descriptions
Add more detail to `avail_endpoint` descriptions
2 parents 9a7e505 + 3f7897e commit 73ea679

28 files changed

+68
-55
lines changed

R/avail_endpoints.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ avail_endpoints <- function() {
2222
Endpoint = paste0(h$Name, "()"),
2323
Description = h$Title
2424
)
25+
cli::cli_inform(c("i" = "Data is available for the US only, unless otherwise specified"))
2526
tib %>% print(n = 50)
2627
}

R/endpoints.R

Lines changed: 32 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#' CDC page hits
1+
#' CDC total and by topic webpage visits
22
#'
33
#' @description
44
#' API docs: <https://cmu-delphi.github.io/delphi-epidata/api/cdc.html>
@@ -51,7 +51,7 @@ pvt_cdc <- function(auth, locations, epiweeks, fetch_args = fetch_args_list()) {
5151
) %>% fetch(fetch_args = fetch_args)
5252
}
5353

54-
#' COVID hospitalization facility identifiers
54+
#' Helper for finding COVID hospitalization facilities
5555
#'
5656
#' @description
5757
#' API docs:
@@ -135,7 +135,7 @@ pub_covid_hosp_facility_lookup <- function(
135135
) %>% fetch(fetch_args = fetch_args)
136136
}
137137

138-
#' COVID hospitalization data for specific facilities
138+
#' COVID hospitalizations by facility
139139
#'
140140
#' @description
141141
#' API docs:
@@ -437,7 +437,7 @@ pub_covid_hosp_facility <- function(
437437
) %>% fetch(fetch_args = fetch_args)
438438
}
439439

440-
#' COVID hospitalization data by state
440+
#' COVID hospitalizations by state
441441
#'
442442
#' @description
443443
#' API docs: <https://cmu-delphi.github.io/delphi-epidata/api/covid_hosp.html>.
@@ -647,7 +647,7 @@ pub_covidcast_meta <- function(fetch_args = fetch_args_list()) {
647647
) %>% fetch(fetch_args = fetch_args)
648648
}
649649

650-
#' COVID data via the covidcast endpoint
650+
#' Various COVID and flu signals via the COVIDcast endpoint
651651
#'
652652
#' @description
653653
#' API docs: <https://cmu-delphi.github.io/delphi-epidata/api/covidcast_signals.html>
@@ -790,7 +790,7 @@ pub_covidcast <- function(
790790
) %>% fetch(fetch_args = fetch_args)
791791
}
792792

793-
#' Delphi's ILINet forecasts
793+
#' Delphi's ILINet outpatient doctor visits forecasts
794794
#' @description
795795
#' API docs: <https://cmu-delphi.github.io/delphi-epidata/api/delphi.html>
796796
#'
@@ -821,7 +821,7 @@ pub_delphi <- function(system, epiweek, fetch_args = fetch_args_list()) {
821821
) %>% fetch(fetch_args = fetch_args)
822822
}
823823

824-
#' Delphi's PAHO Dengue nowcast
824+
#' Delphi's PAHO dengue nowcasts (North and South America)
825825
#' @description
826826
#' API docs: <https://cmu-delphi.github.io/delphi-epidata/api/dengue_nowcast.html>
827827
#'
@@ -855,7 +855,7 @@ pub_dengue_nowcast <- function(locations, epiweeks, fetch_args = fetch_args_list
855855
) %>% fetch(fetch_args = fetch_args)
856856
}
857857

858-
#' Dengue digital surveillance sensors in PAHO member countries
858+
#' PAHO dengue digital surveillance sensors (North and South America)
859859
#' @description
860860
#' API docs: <https://cmu-delphi.github.io/delphi-epidata/api/dengue_sensors.html>
861861
#'
@@ -900,7 +900,7 @@ pvt_dengue_sensors <- function(auth, names, locations, epiweeks, fetch_args = fe
900900
) %>% fetch(fetch_args = fetch_args)
901901
}
902902

903-
#' ECDC ILI data
903+
#' ECDC ILI incidence (Europe)
904904
#' @description
905905
#' API docs: <https://cmu-delphi.github.io/delphi-epidata/api/ecdc_ili.html>.
906906
#'
@@ -958,11 +958,11 @@ pub_ecdc_ili <- function(regions, epiweeks, ..., issues = NULL, lag = NULL, fetc
958958
) %>% fetch(fetch_args = fetch_args)
959959
}
960960

961-
#' FluSurv hospitalization data
961+
#' CDC FluSurv flu hospitalizations
962962
#' @description
963963
#' API docs: <https://cmu-delphi.github.io/delphi-epidata/api/flusurv.html>.
964964
#'
965-
#' Obtain information on flu hospitalization rates from the Center of Disease
965+
#' Obtain information on influenza hospitalization rates from the Center of Disease
966966
#' Control.
967967
#'
968968
#' See also <https://gis.cdc.gov/GRASP/Fluview/FluHospRates.html>.
@@ -1022,7 +1022,7 @@ pub_flusurv <- function(locations, epiweeks, ..., issues = NULL, lag = NULL, fet
10221022
) %>% fetch(fetch_args = fetch_args)
10231023
}
10241024

1025-
#' FluView virological data from clinical labs
1025+
#' CDC FluView flu tests from clinical labs
10261026
#' @description
10271027
#' API docs: <https://cmu-delphi.github.io/delphi-epidata/api/fluview_clinical.html>
10281028
#'
@@ -1080,7 +1080,7 @@ pub_fluview_clinical <- function(regions, epiweeks, ..., issues = NULL, lag = NU
10801080
) %>% fetch(fetch_args = fetch_args)
10811081
}
10821082

1083-
#' FluView metadata
1083+
#' Metadata for the FluView endpoint
10841084
#' @description
10851085
#' API docs: <https://cmu-delphi.github.io/delphi-epidata/api/fluview_meta.html>
10861086
#' Returns information about the fluview endpoint.
@@ -1092,6 +1092,7 @@ pub_fluview_clinical <- function(regions, epiweeks, ..., issues = NULL, lag = NU
10921092
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
10931093
#'
10941094
#' @return [`tibble::tibble`]
1095+
#' @seealso [`pub_fluview()`]
10951096
#' @keywords endpoint
10961097
#' @export
10971098
pub_fluview_meta <- function(fetch_args = fetch_args_list()) {
@@ -1103,11 +1104,11 @@ pub_fluview_meta <- function(fetch_args = fetch_args_list()) {
11031104
create_epidata_field_info("latest_issue", "date"),
11041105
create_epidata_field_info("table_rows", "int")
11051106
)
1106-
)
1107+
) %>% fetch(fetch_args = fetch_args)
11071108
}
11081109

11091110

1110-
#' FluView ILINet data
1111+
#' CDC FluView ILINet outpatient doctor visits
11111112
#' @description
11121113
#' API docs: <https://cmu-delphi.github.io/delphi-epidata/api/fluview.html>. For
11131114
#'
@@ -1192,7 +1193,7 @@ pub_fluview <- function(
11921193
) %>% fetch(fetch_args = fetch_args)
11931194
}
11941195

1195-
#' Google Flu Trends data
1196+
#' Google Flu Trends flu search volume
11961197
#' @description
11971198
#' API docs: <https://cmu-delphi.github.io/delphi-epidata/api/gft.html>
11981199
#'
@@ -1234,7 +1235,7 @@ pub_gft <- function(locations, epiweeks, fetch_args = fetch_args_list()) {
12341235
) %>% fetch(fetch_args = fetch_args)
12351236
}
12361237

1237-
#' Google Health Trends data
1238+
#' Google Health Trends health topics search volume
12381239
#'
12391240
#' @description
12401241
#' API docs: <https://cmu-delphi.github.io/delphi-epidata/api/ght.html>
@@ -1281,7 +1282,7 @@ pvt_ght <- function(auth, locations, epiweeks, query, fetch_args = fetch_args_li
12811282
) %>% fetch(fetch_args = fetch_args)
12821283
}
12831284

1284-
#' KCDC ILI data
1285+
#' KCDC ILI incidence (Korea)
12851286
#' @description
12861287
#' API docs: <https://cmu-delphi.github.io/delphi-epidata/api/kcdc_ili.html>
12871288
#'
@@ -1332,7 +1333,7 @@ pub_kcdc_ili <- function(regions, epiweeks, ..., issues = NULL, lag = NULL, fetc
13321333
) %>% fetch(fetch_args = fetch_args)
13331334
}
13341335

1335-
#' NoroSTAT metadata
1336+
#' Metadata for the NoroSTAT endpoint
13361337
#' @description
13371338
#' API docs: <https://cmu-delphi.github.io/delphi-epidata/api/meta_norostat.html>
13381339
#'
@@ -1343,6 +1344,7 @@ pub_kcdc_ili <- function(regions, epiweeks, ..., issues = NULL, lag = NULL, fetc
13431344
#' @param auth string. Restricted access key (not the same as API key).
13441345
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
13451346
#' @return [`list`]
1347+
#' @seealso [`pvt_norostat()`]
13461348
#' @keywords endpoint
13471349
#' @export
13481350
pvt_meta_norostat <- function(auth, fetch_args = fetch_args_list()) {
@@ -1355,7 +1357,7 @@ pvt_meta_norostat <- function(auth, fetch_args = fetch_args_list()) {
13551357
) %>% fetch(fetch_args = fetch_args)
13561358
}
13571359

1358-
#' API metadata
1360+
#' Metadata for the Delphi Epidata API
13591361
#' @description
13601362
#' API docs: <https://cmu-delphi.github.io/delphi-epidata/api/meta.html>
13611363
#'
@@ -1368,7 +1370,7 @@ pub_meta <- function(fetch_args = fetch_args_list()) {
13681370
create_epidata_call("meta/", list(), only_supports_classic = TRUE) %>% fetch(fetch_args = fetch_args)
13691371
}
13701372

1371-
#' NIDSS dengue data
1373+
#' NIDSS dengue cases (Taiwan)
13721374
#' @description
13731375
#' API docs: <https://cmu-delphi.github.io/delphi-epidata/api/nidss_dengue.html>
13741376
#'
@@ -1408,7 +1410,7 @@ pub_nidss_dengue <- function(locations, epiweeks, fetch_args = fetch_args_list()
14081410
) %>% fetch(fetch_args = fetch_args)
14091411
}
14101412

1411-
#' NIDSS flu data
1413+
#' NIDSS flu doctor visits (Taiwan)
14121414
#' @description
14131415
#' API docs: <https://cmu-delphi.github.io/delphi-epidata/api/nidss_flu.html>
14141416
#'
@@ -1466,8 +1468,10 @@ pub_nidss_flu <- function(regions, epiweeks, ..., issues = NULL, lag = NULL, fet
14661468
}
14671469

14681470

1469-
#' NoroSTAT data (point data, no min/max)
1471+
#' CDC NoroSTAT norovirus outbreaks
14701472
#' @description
1473+
#' This is point data only, and does not include minima or maxima.
1474+
#'
14711475
#' API docs: <https://cmu-delphi.github.io/delphi-epidata/api/norostat.html>
14721476
#'
14731477
#' This is the documentation of the API for accessing the NoroSTAT (norostat)
@@ -1509,7 +1513,7 @@ pvt_norostat <- function(auth, locations, epiweeks, fetch_args = fetch_args_list
15091513
) %>% fetch(fetch_args = fetch_args)
15101514
}
15111515

1512-
#' Delphi's ILI nowcast
1516+
#' Delphi's ILI Nearby nowcasts
15131517
#' @description
15141518
#' API docs: <https://cmu-delphi.github.io/delphi-epidata/api/nowcast.html>.
15151519
#'
@@ -1545,7 +1549,7 @@ pub_nowcast <- function(locations, epiweeks, fetch_args = fetch_args_list()) {
15451549
) %>% fetch(fetch_args = fetch_args)
15461550
}
15471551

1548-
#' PAHO Dengue data
1552+
#' PAHO dengue data (North and South America)
15491553
#' @description
15501554
#' API docs: <https://cmu-delphi.github.io/delphi-epidata/api/paho_dengue.html>
15511555
#'
@@ -1640,7 +1644,7 @@ pvt_quidel <- function(auth, locations, epiweeks, fetch_args = fetch_args_list()
16401644
) %>% fetch(fetch_args = fetch_args)
16411645
}
16421646

1643-
#' Digital surveillance sensors
1647+
#' Influenza and dengue digital surveillance sensors
16441648
#' @description
16451649
#' API docs: <https://cmu-delphi.github.io/delphi-epidata/api/sensors.html>
16461650
#'
@@ -1696,7 +1700,7 @@ pvt_sensors <- function(auth, names, locations, epiweeks, fetch_args = fetch_arg
16961700
) %>% fetch(fetch_args = fetch_args)
16971701
}
16981702

1699-
#' HealthTweets data
1703+
#' HealthTweets total and influenza-related tweets
17001704
#' @description
17011705
#' API docs: <https://cmu-delphi.github.io/delphi-epidata/api/twitter.html>
17021706
#'
@@ -1757,7 +1761,7 @@ pvt_twitter <- function(auth, locations, ..., dates = NULL, epiweeks = NULL, fet
17571761
) %>% fetch(fetch_args = fetch_args)
17581762
}
17591763

1760-
#' Wikipedia access data
1764+
#' Wikipedia webpage counts by article
17611765
#' @description
17621766
#' API docs: <https://cmu-delphi.github.io/delphi-epidata/api/wiki.html>
17631767
#

man/pub_covid_hosp_facility.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/pub_covid_hosp_facility_lookup.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/pub_covid_hosp_state_timeseries.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/pub_covidcast.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/pub_delphi.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/pub_dengue_nowcast.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/pub_ecdc_ili.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/pub_flusurv.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)