CLiREN-LMS
Introduction to R for Clinical Data Management

R Projects and Folder Structure

Table 1

30-45 minutes Applied Step 6 of 9
Table

Table 1

6 / 9
Table

Table 1

FolderContentsGood practiceCommon risk if unmanaged
`data_raw`Unmodified source exportsTreat as read-only and keep original filenames or date-stamped filenamesAccidental changes to source files
`data_clean`Derived datasets generated by scriptsRecreate from scripts when rules changeConfusion between original and modified data
`scripts`R scripts used for import, checking, cleaning, and reportingUse clear names and keep scripts under version control when possibleUntraceable manual work
`outputs`Reports, query lists, figures, tablesDate-stamp or version outputs where usefulReports overwritten without record
`documentation`Protocol, DMP, data dictionary, CRF guidesKeep study definitions near the codeChecks drift away from protocol definitions