gen_consent_checklist: Generate a checklist for reviewing consent documents

Description Usage Arguments Details

View source: R/gen_consent_checklist.r

Description

This function generates a data.frame that can be saved to .csv and used as a checklist for reviewing participant consent documents.

Usage

1
2
gen_consent_checklist(cleanlist, enroll_start = as.Date("2012-01-01"),
  enroll_end = Sys.Date())

Arguments

cleanlist

The list of cleaned TO1 data generated by clean_to1

enroll_start

The first day of enrollments to review.

enroll_end

The last day of enrollments to review.

Details

Using participant demographics, this function generates a data.frame with a record for every document that needs to be reviewed, with columns for each expected signature.

This is the expected use of this function:

  1. Generate the checklist data.frame

  2. Write the checklist to .csv using write.csv(checklist.df, file = file.choose(), row.names = FALSE, row.names = FALSE, na = "")

  3. Open the .csv in Excel and tidy up the columsn

  4. Print the Excel document

The na = "" is essential - it creates the blank checkboxes that you'll mark as you review documents. I realize this is a crazy mess, but it's the inevitable consequence of converting a one-off script into a distributed function. Maybe it'll get refactored someday.


mmparker/to1check documentation built on May 23, 2019, 5:05 a.m.