subset-publications: Subset a publications object

subset-publicationsR Documentation

Subset a publications object

Description

You can subset publications by identifier or by position using the `[` operator.

Usage

## 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]

Arguments

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.

Value

A publications object.

Examples


# 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']


quincunx documentation built on July 9, 2023, 7:32 p.m.