View source: R/subset_survey_compiler_predefined.R
subset_survey_compiler_predefined | R Documentation |
This is a small helper function to create suveys (PDFs) to collect data for PGG contributions and similar games.
subset_survey_compiler_predefined(
path,
pid = NULL,
id_set = NULL,
pattern = ".jpg",
height = 8.5,
width = 11,
seed = 123,
gid_size = 4,
game_name = "Predefined",
RID = "CR",
day = 1,
month = 3,
year = 2023
)
path |
Path to RICH folder. |
pid |
ID code of focal recipient. |
id_set |
IDs of alter recipients (as vector). |
pattern |
Should JPG be jpg be used to load photos? |
height |
Size of PDF output. |
width |
Size of PDF output. |
seed |
Number to use in RNG. |
gid_size |
Number of terms 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. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.