Learn R Programming

phylosim (version 3.0.5)

as.character.Site: Get the character representation of a Site object

Description

Get the character representation of a Site object.

Usage

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

Arguments

x

A Site object.

...

Not used.

Value

A character vector of length one containing the current state.

See Also

For more information see Site.

Examples

Run this code
# NOT RUN {
	# create site object
	s<-Site(alphabet=NucleotideAlphabet(),state="A")
	# get character represenation
	x<-as.character(s)
	x

 
# }

Run the code above in your browser using DataLab