annotate_data: A function to append header data to token allocation data...

annotate_dataR Documentation

A function to append header data to token allocation data entered via a scan of photographs

Description

This function appends header data to automatically entered data. The end result is a "csv" with the same structure as that which is exported by the standard enter_data function.

Usage

annotate_data(
  path,
  results,
  HHID,
  RID,
  day,
  month,
  year,
  name,
  ID,
  game,
  order,
  seed
)

Arguments

path

Full path to main folder.

results

A cell from the results list exported by auto_enter_all.

HHID

Household ID of focal individual/respondent.

RID

ID of researcher.

day

Day of interview.

month

Month of interview.

year

Year of interview.

name

Name of focal individual/respondent.

ID

Unique ID of focal individual/respondent.

game

ID for case/game/question.

order

Order of frames/panels of photos as presented to the respodent: e.g., with 4 frames, "ABCD", "CDBA", etc. are legal entries.

seed

A seed for the random number generator to sort the order of photos in the array. This should match the seed used to make the survey.

Examples

## Not run: 
annotate_data(path = path, results=Game_all5, HHID="BPL", RID="CR", day=12, month=4, year=2020, 
               name = "Cody", PID="CTR", game="TrustData", order="BA", seed = 1)
                   
## End(Not run)

ctross/DieTryin documentation built on Sept. 8, 2024, 8:07 p.m.