Learn R Programming

phylosim (version 3.0.5)

as.character.Sequence: Get the string representation of a Sequence object

Description

Get the string representation of a Sequence object. The string representation is the concatenation of the states of the aggregated Site object. Undefined states (NA-s) are represented by question marks.

Usage

# S3 method for Sequence
as.character(x, ...)

Arguments

x

A Sequence object.

...

Not used.

Value

A character vector of length one.

See Also

For more information see Sequence.

Examples

Run this code
# NOT RUN {
	# create object
	s<-Sequence(length=10)
	# get character representation
	as.character(s)
 
# }

Run the code above in your browser using DataLab