A very useful R package for importing RedCap database data into R Studio as tidy tibbles.
https://chop-cgtinformatics.github.io/REDCapTidieR/