setName.Sequence: Set the name of a Sequence object

Description Usage Arguments Value Author(s) See Also Examples

Description

Set the name of a Sequence object.

Usage

1
2
## S3 method for class 'Sequence'
setName(this, new.name, ...)

Arguments

this

A Sequence object.

new.name

A character vector of length one.

...

Not used.

Value

The new object name (invisible).

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see Sequence.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
	# create a Sequence object
	s<-Sequence(name="MySeq",length=4)
	# get sequence name
	s$name
	# rename object
	setName(s,"SO")
	s$name
	# rename via virtual field
	s$name<-"SeqSeq"
	s$name
 

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