View source: R/element_position.R
element_position | R Documentation |
This function calculates the median position of each element across sequences, summarizes the distribution, and compares it to a shuffled distribution.
element_position(sequences, n_permutations = 1000)
sequences |
A character vector of sequences to analyze. |
n_permutations |
The number of permutations to use for the null distribution. |
A data frame with the median position, standard deviation, expected position, effect size, and p-value for each element.
# Example usage:
sequences <- c("A B C", "A B", "A C", "B C", "A B C D")
result <- element_position(sequences)
print(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.