process_cinderella_chat: Process Narrative Metrics from Raw CHAT Output

View source: R/process_cinderella_chat.R

process_cinderella_chatR Documentation

Process Narrative Metrics from Raw CHAT Output

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

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 Nov. 6, 2022, 3:54 a.m.