Skip to content

Commit

Permalink
docs: replace example with one that works (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle authored Aug 30, 2023
1 parent 08ac579 commit 4a7abea
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions R/spq_group_by.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
#' @return A query object
#' @export
#' @examples
#' \dontrun{
#' spq_init() %>%
#' spq_add("?s a ?class") %>%
#' spq_group_by(class) %>%
#' spq_head(n=3) %>%
#' spq_perform()
#' }
#' spq_add("?item wdt:P361 wd:Q297853") %>%
#' spq_add("?item wdt:P1082 ?folkm_ngd") %>%
#' spq_add("?area wdt:P31 wd:Q1907114", .label = "?area") %>%
#' spq_add("?area wdt:P527 ?item") %>%
#' spq_group_by(area, areaLabel) %>%
#' spq_summarise(total_folkm = sum(folkm_ngd))
spq_group_by = function(.query, ...){

vars = purrr::map_chr(rlang::enquos(...), spq_treat_argument)
Expand Down
12 changes: 6 additions & 6 deletions man/spq_group_by.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4a7abea

Please sign in to comment.