Learn R Programming

haplotypes (version 1.1.3.1)

range-methods: Returns the minimum and maximum lengths of the DNA sequences

Description

range returns the lengths of shortest and longest DNA sequences.

Usage

# S4 method for Dna
range(x)

Value

an integer of length two.

Arguments

x

an object of class Dna.

Methods

signature(x = "Dna")

range

See Also

length-methods

Examples

Run this code
data("dna.obj")
x <-dna.obj

## shortest and longest DNA sequence lengths
range(x) 

Run the code above in your browser using DataLab