powered by
This function calculates the minimum and maximum length of sequences of elements, where each sequence is split by spaces.
min_max_seq_length(sequences)
A numeric vector of length 2, with the minimum and maximum lengths of the sequences.
A character vector where each element is a sequence of elements separated by spaces.
sequences <- c('hello world', 'hello world hello', 'hello world hello world') min_max_seq_length(sequences)
Run the code above in your browser using DataLab