Creating long single-case data frames from several single-case data frames.

Share:

Description

The longSCDF function transposes a list of single-case data frames (wide) into one (long) data frame.

Usage

1
longSCDF(data)

Arguments

data

A list of single-case data frames

Value

Returns one data frame with data of all single-cases structured by the variable 'case'.

Author(s)

Juergen Wilbert

See Also

makeSCDF, makesingleSC, writeSC

Examples

1
2
3
4
## Convert the list of three single-case data frames from Grosche (2011) into one long data frame
Grosche2011
Grosche2011_long <- longSCDF(Grosche2011)
Grosche2011_long