as.qtag: Convert an object to a qualifier/tag structure

Description Usage Arguments Value Examples

View source: R/qtag.R

Description

A qualifer/tag structure is an experimental version of a data frame that stores id.vars and measure.vars with the data structure, so it can be handled in a more automatic way. This functionality is experimental.

Usage

1
2
3
4

Arguments

df

A data.frame or similar object

id.vars

Column names of qualifying measure.vars (NA to guess)

measure.vars

Column names containing the values of interest (NA to guess)

tag.vars

Column names of tag values

quiet

Use quiet=TRUE to suppress error messages

...

Passed to/from methods

Value

An object of type qtag, which is essentially the unchanged input with id.vars, measure.vars, and tag.vars information attached.

Examples

1
2
3
4
5
data("pocmaj")
pocmaj <- as.qtag(pocmaj, id.vars = c("core", "depth"))
long(pocmaj)
aggregate(pocmaj)
aggregate(long(pocmaj))

mudata documentation built on Nov. 17, 2017, 7:30 a.m.