subset_survey_compiler_partner_choice: Build RICH subset surveys (e.g., for partner choice or PG...

View source: R/subset_survey_compiler_partner_choice.R

subset_survey_compiler_partner_choiceR Documentation

Build RICH subset surveys (e.g., for partner choice or PG games.)

Description

This is a small helper function to create suveys (PDFs) to collect data for PGG contributions and similar games.

Usage

subset_survey_compiler_partner_choice(
  path,
  pattern = ".jpg",
  token_color = "navyblue",
  set_size = 4,
  height = 8.5,
  width = 11,
  seed = 123,
  gid_size = 4,
  game_name = "Choice",
  RID = "CR",
  day = 1,
  month = 3,
  year = 2023
)

Arguments

path

Path to RICH folder.

pattern

Should "JPG" be "jpg" be used to load photos?

token_color

"color" of tokens placed. If data was entered manually, place whatever value was stored to indiciate a tie: e.g., "1"

set_size

Size of set of possible alters.

height

Size of PDF output.

width

Size of PDF output.

seed

Number to use in seeding randomizer. Not applicable with choice data.

gid_size

Number of characters in hashcodes for the game IDs.

game_name

Used to label PDF surveys.

RID

ID of researcher.

day

Day of interview.

month

Month of interview.

year

Year of interview.

Value

A file folder, SubsetSurveys, filled with PDFs of sub-surveys to run, and a second folder, SubsetContributions, filled with CSV files that will be used to record survey results.

Examples

## Not run: 
subset_survey_compiler_partner_choice(path, pattern = ".jpg", token_color="navyblue", set_size=4, 
                                 height=8.5, width=11, seed=123, gid_size=4)

## End(Not run)


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