powered by
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)
A data frame with the median position, standard deviation, expected position, effect size, and p-value for each element.
A character vector of sequences to analyze.
The number of permutations to use for the null distribution.
# Example usage: sequences <- c("A B C", "A B", "A C", "B C", "A B C D") result <- element_position(sequences) print(result)
Run the code above in your browser using DataLab