Reading in data. This takes the actual labels from the Labelled Data CSV option from Redcap, but assigns the abbreviated variable names from the Raw Data set. (the column names in the labelled dataset are horrifically long.)
Now, copy and past the code below into the Console (bottom left window):
d <- read.csv(“pets_labels.csv”)
e <- read.csv(“pets_raw.csv”)
names(d) <- names(e)
This should make d = the labelled dataset, and e = the raw data, which has abbreviated column names. Each dataset should have been uploaded, and is stored in the “files” section of RStudio (you should be able to see them if you navigate to the “Files” tab in the bottom right window).