median_seq_length: Calculate the Median Length of Sequences

View source: R/sequence_length_summary.R

median_seq_lengthR Documentation

Calculate the Median Length of Sequences

Description

This function calculates the median length of a sequence of elements, where each sequence is split by spaces.

Usage

median_seq_length(sequences)

Arguments

sequences

A character vector where each element is a sequence of elements separated by spaces.

Value

A numeric value representing the median length of the sequences.

Examples

sequences <- c('hello world', 'hello world hello', 'hello world hello world')
median_seq_length(sequences)

AnimalSequences documentation built on Sept. 30, 2024, 9:18 a.m.