Learn R Programming

elaborator (version 1.3.5)

elaborator_calculate_pattern_number: Pattern number for input patterns defined by decreases, stability and increases

Description

This function is mostly useful for generating the qualitative trend analysis plots. It returns the pattern numbers for input patterns.

Usage

elaborator_calculate_pattern_number(p)

Value

A numeric vector giving the pattern numbers for all input patterns.

Arguments

p

matrix with patterns within each row. A pattern is described by a combination of elements -1, 0, 1 for decrease, stability and increase between adjacent visits.