Learn R Programming

metaumbrella (version 1.1.0)

subset.umbrella: Create a subset of an object of class “umbrella”

Description

Create a subset of an object of class “umbrella”

Usage

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

Value

Return an object of class “umbrella” with the results of some factors removed.

Arguments

x

an object of class “umbrella”.

subset

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

...

other arguments that can be passed to the function

Examples

Run this code
### perform calculations required for an umbrella review
umb <- umbrella(df.SMD)

### subset the results to factors "ADHD" & "dyslexia"
subset.umb <- subset.umbrella(umb, unique(df.SMD$factor) %in% c("Pharmacological"))

summary(subset.umb)

Run the code above in your browser using DataLab