chop_cs | R Documentation |
Function for separating the conditioned responses into multiple pieces
chop_cs(cs, data, subj, group = NULL, prefix = "cs", na.rm = FALSE)
cs |
The column name(s) of the conditioned responses |
data |
A data frame containing all the relevant columns for the analyses |
subj |
The name of the column including the participant numbers. Unique numbers are expected |
group |
default to |
prefix |
prefix to be included in the end data frame |
na.rm |
Whether NAs should be removed, default to |
A tibble with the following column names: "id" = id column; "top10per" = mean of top 10 "bottom10per" = mean of bottom 10 "minfirst = all trials minus the first one; "all" = mean of all trials; "t33per = mean of top 33 "m33per" = mean of medium 33 "b33per" = mean of bottom 33 "fhalf" = mean of first half of the trials; "lhalf" = mean of last half of the trials; "ftrial" = first trial; "ltrial" = last trial; "t20per" = mean of top 20 "b20per" = mean of bottom 20 "f2trial" = mean of first two trials; "l2trial" = mean of last two trials; "per2_X" = mean per two trials (i.e., block), with X referring to the number of block.
data(example_data)
chop_cs(cs = paste0("CSP", 1:10), data = example_data, subj = "id")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.