MDget: Extract Meta Variables

Description Usage Arguments See Also Examples

Description

Extract variables from each study for analysis.

Usage

1
  MDget(meta.obj, vars, s.names = FALSE, by.study = FALSE)

Arguments

meta.obj

An MDlist (an object from read.MD).

vars

A character vector of variable names to extract.

s.names

logical. If TRUE attempts to name the extracted vector/list elements with study names.

by.study

logical. If TRUE orders the variables by study rather than by variable.

See Also

get

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
path <- system.file("extdata/bibTest.bib", package = "metaDAT")
dat <- read.MD(path)
MDget(dat, c("nt"))
MDget(dat, c("title", "nt"), TRUE)
MDget(dat, c("title", "nt"))
MDget(dat, "grade_level")
MDget(dat, "cor_mats")
MDget(dat, "cor_mats", s.names = TRUE)
dat <- MDapply(dat, "correlation_triangle", MDlist2matrix, "cor_mats")
MDget(dat, c("title", "nt", "cor_mats"))
MDget(dat, c("grade_level", "nt", "cor_mats"), by.study=TRUE)
MDget(dat, c("grade_level", "nt", "cor_mats"), s.names = TRUE, by.study=TRUE)

trinker/metaDAT documentation built on May 31, 2019, 8:52 p.m.