synth_rank: Synthetic Ranking

View source: R/eratosthenes.R

synth_rankR Documentation

Synthetic Ranking

Description

Using a list two or more partial sequences, all of which observe the same order of elements, create a single "synthetic" ranking. This is accomplished by counting the total number of elements after running a recursive trace through all partial sequences (via quae_postea). If partial sequences are inconsistent in their rankings, a NULL value is returned.

Usage

synth_rank(obj, ties = "average")

## S3 method for class 'list'
synth_rank(obj, ties = "average")

Arguments

obj

A list of vector objects which represent a sequence.

ties

The way in which ties are handled per the rank function. The default is "ties = average".

Value

A single vector containing the synthesized ranking.

Examples

x <- c("A", "B", "C", "D", "E")
y <- c("B", "D", "F", "E")
a <- list(x, y)

synth_rank(a)


eratosthenes documentation built on June 28, 2025, 1:08 a.m.