subset.longarm: Return subset of longarm object

View source: R/subset.longarm.R

subset.longarmR Documentation

Return subset of longarm object

Description

The subset method returns a subset of a longarm object.

Usage

## S3 method for class 'longarm'
subset(x, subset, ...)

Arguments

x

An object of class longarm.

subset

A logical expression indicating elements or rows to keep: missing values are taken as false.

...

Additional arguments.

Value

A longarm object is returned.

Author(s)

Guido Schwarzer guido.schwarzer@uniklinik-freiburg.de

See Also

longarm

Examples

# Artificial example with three studies
m <- metabin(1:3, 100:102, 4:6, 200:202, studlab = LETTERS[1:3])
# Transform data to long arm-based format
l1 <- longarm(m)
l1

# Subset without Study B
subset(l1, studlab != "B")


meta documentation built on Oct. 31, 2024, 5:07 p.m.