deleteSubSequence.Sequence: Delete a collection of sites aggregated by a Sequence object

Description Usage Arguments Value Author(s) See Also Examples

Description

Delete a collection of sites aggregated by a Sequence object.

Usage

1
2
## S3 method for class 'Sequence'
deleteSubSequence(this, index, ...)

Arguments

this

A Sequence object.

index

An index vector specifying a collection of sites to be deleted. It is set to 1:seq$length if omitted.

...

Not used.

Value

Invisible TRUE or errror.

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see Sequence.

Examples

1
2
3
4
5
6
7
8
9
	# create a nucleotide sequence
	s<-NucleotideSequence(string="ATATATATATATATAT")
	# delete sites 2, 4 and 6
	deleteSubSequence(s,c(2,4,6))
	s
	# delete sites in the range 3:6
	deleteSubSequence(s,3:6)
	s
 

phylosim documentation built on Nov. 22, 2019, 1:07 a.m.