long: Convert data to long format

Description Usage Arguments Value Examples

View source: R/qtag.R

Description

Convert data to long format

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
long(x, ...)

## Default S3 method:
long(x, ...)

## S3 method for class 'qtag.long'
long(x, ...)

## S3 method for class 'qtag.wide'
long(x, varname = "param", quiet = FALSE, ...)

Arguments

x

A qtag object

...

Passed to other methods

varname

The column name in which column names will be stored.

quiet

Supress warning messages on coersion to a qualifier/tag structure.

Value

A (possibly unchanged) qtag.long data.frame

Examples

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

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