Description Usage Arguments Value Author(s) See Also Examples
Retrieve all cues from a vector of text strings.
1 |
text |
A vector with text strings containing cues or outcomes,
separated by a symbol specified by |
split |
separator between cues. |
unique |
Logical: only return unique values (TRUE) or all values (FALSE, default). When unique values are bein returned, they are sorted. |
decreasing |
Logical: sorting in alphabetical order (FALSE, default) or the reverse order (TRUE)? Only applies when |
A vector with strings
Jacolien van Rij
strsplit
, sort
, unique
,
getOutcomes
, getCues
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # load example data:
data(dat)
# prepare training data:
dat$Cues <- paste("BG", dat$Shape, dat$Color, sep="_")
dat$Outcomes <- dat$Category
dat$Frequency <- dat$Frequency1
train <- createTrainingData(dat)
# find all cues in trainingdata:
cues <- getValues(train$Cues)
table(cues)
# find all outcomes in data:
out <- getValues(train$Outcomes)
table(out)
# find (sorted) unique cues and outcomes:
getValues(dat$Cues, unique=TRUE)
getValues(dat$Outcomes, unique=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.