process_cinderella_chat: Process Narrative Metrics from Raw CHAT Output

Description Usage Arguments Value

View source: R/process_cinderella_chat.R

Description

Takes the output from CHAT for a narrative sample and converts it into a form that can be directly read into Redcap. This can be done through an API write call or through uploading it manually.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
process_cinderella_chat(
  filepath,
  record_id = NA,
  instance = NA,
  entry = NA,
  administrator = NA,
  date = NA,
  study = NA,
  timepoint = NA,
  record_id_col = "demo_record_id",
  inst_name = "cinderella_narrative_summary"
)

Arguments

filepath

Character, Filepath to a .csv or .xlsx file created by CHAT

record_id

Character or Numeric, Record ID for this participant

instance

Character or Numeric, Instance number for this participant's narrative sample

entry

Person doing data entry

administrator

Character, researcher NetID

date

Character, Date of the sample in MM-DD-YYYY format

study

Character, Which study is this sample for?

timepoint

Character, Which timepoint of the study is this sample for?

record_id_col

Defaults to record_id

inst_name

Defaults to cinderella_narrative_summary

Value

A dataframe ready to be exported to redcap


tsostarics/anrlab documentation built on Dec. 13, 2021, 10:11 a.m.