-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #155 from cmu-delphi/djm/endpointfun
Djm/endpointfun
- Loading branch information
Showing
40 changed files
with
397 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#' List all available endpoints | ||
#' | ||
#' @return A [`tibble::tibble`] with 2 columns. `Endpoint` contains the function | ||
#' for accessing the Delphi Epidata API endpoint along with a `Description`. | ||
#' @export | ||
#' | ||
#' @examples | ||
#' endps <- avail_endpoints() | ||
#' print(endps, n = nrow(endps)) | ||
avail_endpoints <- function() { | ||
h <- help.search("endpoint", | ||
package = "epidatr", fields = "concept", | ||
agrep = FALSE | ||
)$matches | ||
tib <- tibble::tibble( # printing is much nicer than data.frame | ||
Endpoint = paste0(h$Name, "()"), | ||
Description = h$Title | ||
) | ||
tib | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.