Learn R Programming

meta (version 6.2-1)

subset.longarm: Return subset of longarm object

Description

The subset method returns a subset of a longarm object.

Usage

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

Value

A longarm object is returned.

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.

See Also

longarm

Examples

Run this code
# 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")

Run the code above in your browser using DataLab