site_keeper: Utility function for reducing double/triple scans to a single...

Description Usage Arguments Value Examples

View source: R/site_keeper.R

Description

site_keeper returns a MOAS data.frame with one row per participant and timepoint (i.e. removes double/triple scan entries). For analyses not intending to use the power of double/triple scans, or for data which will be widened and scanner type/site is not of interest. Only subject timepoints that have several entries (i.e. several scan sites), will be reduced. All timepoints will be retained.

Usage

1
site_keeper(data, keep = "long", quiet = F)

Arguments

data

The MOAS or a MOAS generated file.

keep

A string specifying which data from double/triple scans to keep.

quiet

logical, TRUE sets it to verbose Available options are: 'long' - keep data from scanner with most data (default), 'ousAvanto' = keep 'ousAvanto', 'ousSkyra' = keep 'ousSkyra', or 'ousPrisma' = keep 'ousPrisma'.

Value

A MOAS type file with one line per subject and timepoint.

Examples

1
2
3
4
5
6
## Not run: 
site_keeper(MOAS)
site_keeper(MOAS, 'ousSkyra')
site_keeper(MOAS, 'ousAvanto')

## End(Not run)

LCBC-UiO/MOAS documentation built on Dec. 21, 2018, 7:13 p.m.