REDCap to R Data Set

Many investigators, project managers, and data managers have turned to REDCap to manage their data. Eventually, it falls to the statistician to take the REDCap data and load it into their statistical analysis program of choice. In this presentation, I show how to use the CSV and R script file downloaded from REDCap to create a clean R data set.

read more

Export R to SPSS with Variable Labels

The foreign R package is useful for exporting data sets to all kinds of formats including files for the proprietary SPSS program from IBM. However, the default method for writing to SPSS doesn’t allow for variable labels. Instead, it defaults to labeling all of the variables by their name from the column headings. In this presentation, we will use the Hmisc R package for its variable labeling functionality and write a modification to the original SPSS export function from the foreign R package.

read more

Recent Comments

    Main Menu

    Home | About | Contact | Consulting | Resumé

     

    Created by Wade K. Copeland | Privacy Policy | This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License.