download_nit_records() and download_nca_records() download records from the Interview Tool and Case Assignment REDcap projects.

download_nca_records(api_token = Sys.getenv("redcap_NCA_token"), fields = NULL)

download_nit_records(api_token = Sys.getenv("redcap_NIT_token"), fields = NULL)

Arguments

api_token

The API token for the Case Assignment REDcap project

fields

character. The fields to download from the project. By default, all fields are downloaded.

Value

A tibble with all variables in character format

TODO

  1. Check six column in NCA to see if exclusion is necessary

  2. Create unit tests