count_distinct_elements_per_list_item_shuffled: Count Distinct Elements per List Item in Shuffled Sequences

View source: R/sequence_length_summary.R

count_distinct_elements_per_list_item_shuffledR Documentation

Count Distinct Elements per List Item in Shuffled Sequences

Description

This function calculates the number of distinct elements per list item in a list of sequences shuffled using the 'shuffle_sequences_across' function. The shuffling is performed a specified number of times.

Usage

count_distinct_elements_per_list_item_shuffled(sequences, iterations = 100)

Arguments

sequences

A list of character vectors, where each vector contains sequences of elements separated by spaces.

iterations

An integer specifying the number of shuffling iterations.

Value

A numeric vector of length 'iterations', each element representing the number of distinct elements per list item in a shuffled sequence.

Examples

sequences <- c('hello world', 'hello world hello', 'hello world hello world')
count_distinct_elements_per_list_item_shuffled(sequences, iterations = 100)

AnimalSequences documentation built on Sept. 30, 2024, 9:18 a.m.