Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle committed Oct 12, 2023
1 parent d8e3620 commit f1fec23
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
15 changes: 13 additions & 2 deletions R/spq_select.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,19 @@
#' @export
#' @examples
#'
#' query = spq_init()
#' spq_select(query, count = n (human), eyecolor_label, haircolor_label)
#' spq_init() |>
#' spq_prefix(prefixes = c(dct = "http://purl.org/dc/terms/")) |>
#' spq_add(spq('?lexemeId dct:language wd:Q1860')) |>
#' spq_mutate(lemma = wikibase::lemma(lexemeId)) |>
#' spq_filter(str_detect(lemma, '^pota.*')) |>
#' spq_select(- lemma)
#'
#' spq_init() |>
#' spq_prefix(prefixes = c(dct = "http://purl.org/dc/terms/")) |>
#' spq_add(spq('?lexemeId dct:language wd:Q1860')) |>
#' spq_mutate(lemma = wikibase::lemma(lexemeId)) |>
#' spq_filter(str_detect(lemma, '^pota.*')) |>
#' spq_select(lemma)
spq_select = function(.query = NULL, ..., .spq_duplicate = NULL){
if (!is.null(.spq_duplicate)) {
original_spq_duplicate = .spq_duplicate
Expand Down
15 changes: 13 additions & 2 deletions man/spq_select.Rd

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

0 comments on commit f1fec23

Please sign in to comment.