Learn R Programming

gwasrapidd (version 0.99.17)

subset-associations: Subset an associations object

Description

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

Usage

# S4 method for associations,missing,missing,missing
[(x, i, j, ..., drop = FALSE)

# S4 method for associations,numeric,missing,missing [(x, i, j, ..., drop = FALSE)

# S4 method for associations,character,missing,missing [(x, i, j, ..., drop = FALSE)

Value

A associations object.

Arguments

x

A associations object.

i

Position of the identifier or the name of the identifier itself.

j

Not used.

...

Additional arguments not used here.

drop

Not used.

Examples

Run this code
# Subset an associations object by identifier
associations_ex01['22505']

# Or by its position in table associations
associations_ex01[2]

# Keep all associations except the second
associations_ex01[-2]

Run the code above in your browser using DataLab