View source: R/sequence_length_summary.R
count_distinct_elements | R Documentation |
This function counts the number of distinct elements across all sequences, where each sequence is split by spaces.
count_distinct_elements(sequences)
sequences |
A character vector where each element is a sequence of elements separated by spaces. |
An integer representing the number of distinct elements across all sequences.
sequences <- c('hello world', 'hello world hello', 'hello world hello world')
count_distinct_elements(sequences)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.