compile_data: A function to compile CSV data from RICH economic games into...

View source: R/compile_data.R

compile_dataR Documentation

A function to compile CSV data from RICH economic games into an edgelist and summary table

Description

This function allows you to merge the individual-specific CSVs. Simply set a path to the main folder. Then run the function. See details below.

Usage

compile_data(path = path, game = "GivingData", batch = FALSE)

Arguments

path

Full path to main folder.

game

Select the data to merge. "GivingData" for Giving. "LeavingData" for Leaving. "ReducingData" for Reducing. Other folders can be compiled as well, by putting the folder name here: e.g., "FriendshipTies"

batch

Do the tie data come from the batched-processed image classifier? If so, set batch=TRUE, so that an extra column with game ID is added.

Examples

## Not run: 
  compile_data(path=path, game="GivingData")
                   
## End(Not run)

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