Learn R Programming

scan (version 0.20)

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

Description

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

Usage

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'.

See Also

makeSCDF, makesingleSC, writeSC

Examples

Run this code
# NOT RUN {
## Convert the list of three single-case data frames from Grosche (2011) into one long data frame
Grosche2011
Grosche2011_long <- longSCDF(Grosche2011)
Grosche2011_long
# }

Run the code above in your browser using DataLab