View source: R/aggregate_indices.R
all_randicators | R Documentation |
Compute collection of randomness indices
all_randicators(
x,
options,
circ = TRUE,
asc = TRUE,
indices = NULL,
combine = FALSE
)
x |
vector containing one sequence of discrete values or data frame containing sequences of discrete values in row-wise format |
options |
number of possible unique discrete values in sequence |
circ |
indicate whether to include wrap around from end to the beginning |
asc |
indicate whether to compute variance of ascending or descending runs. Default value is set to ascending. |
indices |
names of randomness indices to be computed as character vector |
combine |
indicates whether the computed indices should be combined with the original data frame. |
This function allows to enter a data frame or vector x
of sequence data and
computes a variety of randomness indices. If x
is a data frame, it is
assumed that the sequences are provided in a row-wise format, i.e., each row
represents one sequence. All columns are included in the analysis.
In this case, the output of the function is also a data frame. If you want
the indices to be appended to your input data frame, you can set
combine
to TRUE.
If x
is a vector, all indices are computed normally over said vector.
In this case, the output of the function is also a vector with one value for
each computed index.
The circ
arguments determines whether a wrap around of the last digits
in a sequence to the first digits of a sequence should be included for indices
that are based on computing response pairs. The asc
arguments
determines whether ascending or descending runs should be computed for the
runs index.
The indices
argument lets you specify the randomness indices that you
want to have. By default all indices are computed.
vector or data frame containing the selection of randomness indices
all_randicators(ginsburg1994, 10)
all_randicators(evans1978[, 1], 10)
all_randicators(evans1978[, 2], 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.