subset.longarm {meta} | R 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 |
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
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")
[Package meta version 7.0-0 Index]