subset-publications | R Documentation |
You can subset publications by identifier or by position using
the `[`
operator.
## S4 method for signature 'publications,missing,missing,missing'
x[i, j, ..., drop = FALSE]
## S4 method for signature 'publications,numeric,missing,missing'
x[i, j, ..., drop = FALSE]
## S4 method for signature 'publications,character,missing,missing'
x[i, j, ..., drop = FALSE]
x |
A publications object. |
i |
Position of the identifier or the name of the identifier itself. |
j |
Not used. |
... |
Additional arguments not used here. |
drop |
Not used. |
A publications object.
# Get all publications in the PGS Catalog:
all_pub <- get_publications(interactive = FALSE, progress_bar = FALSE)
#
# Subsetting by position
#
all_pub[1:5]
#
# Subsetting by publication identifier (character)
#
all_pub['PGP000001']
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.