View source: R/sequence_length_summary.R
compare_distinct_elements_per_list_item | R Documentation |
This function compares the true number of distinct elements per list item in a list of sequences to the number of distinct elements per list item in shuffled sequences. The comparison is done by calculating p-values from shuffled sequences.
compare_distinct_elements_per_list_item(sequences, iterations = 100)
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. |
A data frame with columns:
true_distinct_elements |
The number of distinct elements per list item in the original sequences. |
shuffled_distinct_elements |
The average number of distinct elements per list item in shuffled sequences. |
p_value |
The p-value representing the proportion of shuffled sequences where the number of distinct elements is less than or equal to the true number. |
sequences <- c('hello world', 'hello world hello', 'hello world hello world', 'hello world')
compare_distinct_elements_per_list_item(sequences, iterations = 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.