MDmerge: Merge Two or More MDlists

Description Usage Arguments Value Note See Also Examples

Description

Merge two or more MDlists.

Usage

1
2
  MDmerge(..., id.vars = NULL, sep = "_",
    detect.class = TRUE, stringsAsFactors = FALSE)

Arguments

...

MDlists (objects from read.MD) to be coerced to one.

id.vars

Specifications of the common variable(s). Default is NULL.

sep

A character string to separate the MDlist merged study names by + identifiers (id.vars).

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?

Value

Returns a merged MDlist object.

Note

General use is for merging multiple coders with different studies together into one MDlist. This is not recommended for combing the same studies coded by two different coders (double coded). Instead keep two different MDlist data sets for reliability checking.

See Also

merge

Examples

1
2
3
4
5
6
7
8
9
path <- system.file("extdata/bibTest.bib", package = "metaDAT")
dat1 <- read.MD(path)
path2 <- system.file("extdata/bibTest3.bib", package = "metaDAT")
dat2 <- read.MD(path2)
datMerged <- MDmerge(dat2, dat1)
datMerged
MDstr(datMerged)
names(datMerged)
MDmerge(dat2, dat1, id.vars = c("coder", "time"), sep = "%")

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