melt.parallel: Melt multiple sets of columns in parallel

Description Usage Arguments Value Examples

Description

Essentially this is a wrapper around reshape2::melt.data.frame that is able to cbind several melt operations.

Usage

1
2
melt.parallel(x, id.vars, variable.name = "column", ...,
  factorsAsStrings = TRUE)

Arguments

x

A data.frame

id.vars

vector of ID variable names

variable.name

Column name to use to store variables

...

Named arguments specifying the measure.vars to be stored to the column name specified.

factorsAsStrings

Control whether factors are converted to character when melted as measure variables.

Value

A qtag.long object

Examples

1
2
3
4
5
data(pocmajpb210)
melt.parallel(pb210,
              id.vars=c("core", "depth"),
              values=c("Pb210", "age", "sar"),
              err=c("Pb210_sd", "age_sd", "sar_err"))

paleolimbot/ofcores documentation built on May 24, 2019, 6:13 p.m.