count.selections {tempR} | R Documentation |
Count attribute selections
Description
Count the number of times that the attribute was selected (or optionally: deselected) in a single TCATA or TDS evaluation.
Usage
count.selections(x, deselections = FALSE)
Arguments
x |
vector of binary data (with possible values |
deselections |
set to |
Details
Count the number of times that the attribute was selected (or, optionally, deselected) in a single TCATA or TDS evaluation.
Value
count of selections (or deselections if deselections = TRUE
)
Examples
data(bars)
paste0(bars[1, -c(1:4)], collapse = "")
# this attribute was checked 3 times and unchecked 2 times
count.selections(bars[1, -c(1:4)])
count.selections(bars[1, -c(1:4)], deselections = TRUE)
[Package tempR version 0.10.1.1 Index]