getCol: Get item-level column names from Jackson Phd test data frame.

Description Usage Arguments Value Examples

Description

Get item-level column names for answer accuracy (a), confidence (c), decision (d) or time (t) from data frame with regex call.

Usage

1
getCol(x, i, group = c(T))

Arguments

x

Data frame from phd sample.

i

Character indicating information type to get. 'a' = accuracy, 'c' = confidence, 'd' = decision, 't' = time.

group

Logical vector used to return a group of the candidate results. Default = c(TRUE) to return all results.

Value

Vector of column names.

Examples

1
2
3
4
getCol(phd[[1]]$EA, 'a')
getCol(phd[[1]]$EA, "a|c")
getCol(phd[[1]]$EA, "[ac]")
getCol(phd[[1]]$EA, 'a', c(T, F))  # return off columns

drsimonj/jacksonphd documentation built on May 15, 2019, 2:52 p.m.