Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

redcapFactorFlip

Convert REDCap factors between labelled and coded


Description

Factors exported from REDCap can be toggled between the coded and labelled values with the use of the attributes assigned to the factors during export.

Usage

redcapFactorFlip(v)

Arguments

v

A factor exported from REDCap. The REDCap type may be radio, dropdown, check, yesno, etc.

Details

Each factor type variable in REDCap is given the attributes redcapLabels and redcapLevels. With these attached to the vector, switching between the coded and labelled values can be done with ease. This may be helpful when the coded value has importance, such as 0/1 for death, or if a yes is worth 6 points (instead of 1).

Author(s)

Benjamin Nutter


redcapAPI

Interface to 'REDCap'

v2.3
GPL-2
Authors
Benjamin Nutter [aut, ctb, cre], Stephen Lane [ctb], Will Beasley [ctb], Jeffrey Horner [ctb], Will Gray [ctb], Jeremy Stephens [ctb], Marcus Lehr [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.