View source: R/widen.R View source: R/old/widen2.R
widen | R Documentation |
This is a function to create a widened data.frame from the MOAS. Widening of the data is necessary for performing ANOVAs and other statistical analysis, particularly if intending to run in SPSS.
widen(data, by, keep = NULL)
data |
The MOAS or a MOAS generated file. |
by |
Column which to widen by |
keep |
Option to provide to [site_keeper()] for filtering the double/triple scanned |
For MOAS which inclused double/triple scans, by="Site_Name", must be run prior to by="Project_Wave".
'by' options are:
Subject_Timepoint
Project_Wave
Site_Name
Site_Number
A MOAS type file widened by selected column, prefixed with columns specifications
## Not run:
widen(MOAS, by="Site_Name")
widen(MOAS, by="Project_Wave")
# Data with double/triple scans must be widened
# in a two-stage process
dt = widen(MOAS, by="Site_Name")
df = widen(dt, by="Project_Wave")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.