Learn R Programming

mudata (version 0.1.1)

long: Convert data to long format

Description

Convert data to long format

Usage

long(x, ...)

# S3 method for default long(x, ...)

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

# S3 method for 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

Run this code
# NOT RUN {
data(pocmaj)
pocmaj <- as.qtag(pocmaj, id.vars = c("core", "depth"))
long(pocmaj)

# }

Run the code above in your browser using DataLab