We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 027b7ef commit 7189f18Copy full SHA for 7189f18
R/avail_endpoints.R
@@ -8,13 +8,10 @@
8
#' endps <- avail_endpoints()
9
#' print(endps, n = nrow(endps))
10
avail_endpoints <- function() {
11
- db <- utils::hsearch_db("epidatr")
12
- endpoint_ids <- db$Concepts$ID[db$Concepts$Concept == "endpoint"]
13
- all_ids <- db$Base$ID
14
- our_endpoints <- all_ids %in% endpoint_ids
+ h <- help.search("endpoint", package = "epidatr", fields = "concept")$matches
15
tib <- tibble::tibble( # printing is much nicer than data.frame
16
- Endpoint = paste0(db$Base$Name[our_endpoints], "()"),
17
- Description = db$Base$Title[our_endpoints]
+ Endpoint = paste0(h$Name, "()"),
+ Description = h$Title
18
)
19
tib
20
}
0 commit comments