View source: R/sequence_length_summary.R
count_distinct_elements_per_list_item | R Documentation |
This function calculates the average number of distinct elements per item in a list of sequences, where each sequence is split by spaces.
count_distinct_elements_per_list_item(sequences)
sequences |
A list of character vectors, where each vector contains sequences of elements separated by spaces. |
A numeric value representing the average number of distinct elements per list item.
sequences <- c('hello world', 'hello world hello', 'hello world hello world')
count_distinct_elements_per_list_item(sequences)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.