Learn R Programming

quincunx (version 0.1.9)

bind: Bind PGS Catalog objects

Description

Binds together PGS Catalog objects of the same class. Note that bind() preserves duplicates whereas union does not.

Usage

bind(x, ...)

Value

An object of the same class as x.

Arguments

x

An object of either class scores, publications, traits, performance_metrics, sample_sets, cohorts or trait_categories.

...

Objects of the same class as x.

Examples

Run this code
if (FALSE) { # interactive()
# Get some `scores` objects:
my_scores_1 <- get_scores(c('PGS000012', 'PGS000013'))
my_scores_2 <- get_scores(c('PGS000013', 'PGS000014'))

# NB: with `bind()`, PGS000013 is repeated (as opposed to `union()`)
bind(my_scores_1, my_scores_2)@scores
}

Run the code above in your browser using DataLab