all_randicators: Compute collection of randomness indices

View source: R/aggregate_indices.R

all_randicatorsR Documentation

Compute collection of randomness indices

Description

Compute collection of randomness indices

Usage

all_randicators(
  x,
  options,
  circ = TRUE,
  asc = TRUE,
  indices = NULL,
  combine = FALSE
)

Arguments

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.

Details

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.

Value

vector or data frame containing the selection of randomness indices

Examples

all_randicators(ginsburg1994, 10)
all_randicators(evans1978[, 1], 10)
all_randicators(evans1978[, 2], 10)


TImA97/randfindR documentation built on July 1, 2024, 7:56 p.m.