Skip to content

Commit

Permalink
refine
Browse files Browse the repository at this point in the history
  • Loading branch information
trangdata committed Nov 14, 2024
1 parent 304575d commit eb0e01e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions R/openalexR-coverage.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#' head(get_coverage(entity = "works"))
get_coverage <- function(entity = NULL) {
utils::data("oa2df_coverage", envir = environment(), package = "openalexR")
oa2df_coverage <- oa2df_coverage

if (!is.null(entity)) {
entity <- match.arg(entity, oa_entities())
Expand Down
14 changes: 7 additions & 7 deletions vignettes/articles/A_Brief_Introduction_to_openalexR.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -254,19 +254,19 @@ do.call(oa_fetch, c(italian_insts, list(count_only = TRUE)))
dplyr::glimpse(do.call(oa_fetch, italian_insts))
```

## Concepts (think theme, keywords)
## Keywords

**Example**: We want to download the records of all the concepts that concern at least one million works:
**Example**: We want to download the records of all the keywords that more than 1000 works were tagged with:

```{r}
popular_concepts <- list(
entity = "concepts",
works_count = ">1000000",
popular_keywords <- list(
entity = "keywords",
works_count = ">1000",
verbose = TRUE
)
do.call(oa_fetch, c(popular_concepts, list(count_only = TRUE)))
dplyr::glimpse(do.call(oa_fetch, popular_concepts))
do.call(oa_fetch, c(popular_keywords, list(count_only = TRUE)))
dplyr::glimpse(do.call(oa_fetch, popular_keywords))
```

## Other examples
Expand Down

0 comments on commit eb0e01e

Please sign in to comment.