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

annotate_batch_dataR Documentation

A function to append header data to token allocation data entered via batch scans of photographs

Description

This function appends header data to automatically entered data batch-wise. The end result is a "csv" with the same structure as that which is exported by the standard enter_data function, but with one extra column for game ID.

Usage

annotate_batch_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_batch_data(path = path, results=Game_all6, HHID="JKF", RID="CR", 
                   day=11, month=3, year=2020, name = "Walter W.", PID="CVD",
                   game="LikertData", order="AB", seed = 1)
                   
## End(Not run)

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