read.MD: Read in Meta Analysis Data

Description Usage Arguments Format Value Examples

Description

Read in meta-analysis data from a .bib file created in jabRef (may be any text based file).

Usage

1
2
3
4
5
6
  read.MD(file, entry.name = "@META", out.file = NULL,
    rm.coder = FALSE, rm.timestamp = TRUE,
    rm.comment = TRUE, detect.class = TRUE,
    stringsAsFactors = FALSE, exclude.vars = .exclvars)

  .exclvars

Arguments

file

The name of the file which the data are to be read from.

entry.name

A character string indicating the type of entry from the .bib file. Default is "@META".

out.file

A character string naming the file to print to.

rm.coder

logical. If TRUE removes the coder name from the meta list.

rm.timestamp

logical. If TRUE removes the timestamp from the MDlist.

rm.comment

logical. If TRUE removes the ## comments from the MDlist.

detect.class

logical. If TRUE detects the class of the character string(s) for each variable.

stringsAsFactors

logical. Should character vectors be converted to factors if detect.class is TRUE?

exclude.vars

A character vector of variables to exclude. Default is .exclvars, a predefined vector of exclusion variables.

Format

chr [1:16] "title" "publisher" "shorttitle" "volume" "number" "pages" "month" "note" "crossref" "keywords" "file" "doi" "url" "comment" ...

Value

Returns a list structure with information for each study (refered as MDlist).

Examples

1
2
3
4
5
path <- system.file("extdata/bibTest.bib", package = "metaDAT")
read.MD(path)
read.MD(path, rm.comment=FALSE)
evars <- c("coder", "time", "ee_phi")
read.MD(path, exclude.vars = evars)

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