categorize: Categorize Function

Description Usage Arguments Value Examples

View source: R/categorize.R

Description

categorize loads, pivots, and combines valid blocks of image categorization task responses, then associates participant response counts to categories for each image.

Usage

1
categorize(path, key_filename = "categorization_key.txt", threshold = 0)

Arguments

path

The path relative to working directory that holds data in designated "valid" and "keys" directories.

key_filename

Name of the categorization key TXT file with extension. Defaults to "categorization_key.txt".

threshold

The minimum number of correct validations participants must have made to have their responses considered for categorization. Defaults to 0.

Value

A categorized dataframe of images for a given validation threshold. The dataframe is saved to file with a reference to valdiation threshold, such that the output filename takes the form "categorized_X_valid.tsv", where X is the minimum number of validations expected correct for the task.

Examples

1
categorize("path/to/data", threshold = 3)

sokolhessnerlab/shlab.imgct documentation built on Oct. 4, 2020, 7:31 a.m.