Description Usage Arguments Value Author(s) See Also Examples
The longSCDF function transposes a scdf into one long data frame. Additionally, a data frame can be merged that includes data of the subjects. This might be helpful to prepare data to be used with other packages than scan.
1 |
data |
A single-case data frame. See |
l2 |
A data frame providing additional variables at Level 2. The scdf has to have names for all cases and the Level 2 data frame has to have a column with corresponding case names. |
id |
Variable name of the Level 2 data frame that contains the case names. |
Returns one data frame with data of all single-cases structured by the case variable.
Juergen Wilbert
Other data manipulation functions:
fillmissingSC()
,
outlierSC()
,
rankSC()
,
scaleSC()
,
shiftSC()
,
smoothSC()
,
truncateSC()
1 2 3 4 5 6 7 8 9 | ## Convert the list of three single-case data frames from Grosche (2011) into one long data frame
Grosche2011
Grosche2011_long <- longSCDF(Grosche2011)
Grosche2011_long
## Combine an scdf with data for l2
Leidig2018_long <- longSCDF(Leidig2018, l2 = Leidig2018_l2)
names(Leidig2018_long)
summary(Leidig2018_long)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.