Learn R Programming

phylosim (version 3.0.5)

setName.Event: Set the name of an Event object

Description

Set the name of an Event object.

Usage

# S3 method for Event
setName(this, new.name, ...)

Arguments

this

An Event object.

new.name

A character vector of length one.

...

Not used.

Value

The new name (invisible).

See Also

For more information see Event.

Examples

Run this code
# NOT RUN {
	# create an Event object
	e<-Event()
	# set event name
	setName(e,"Insertion")
	# get event name
	e$name
	# set name via virtual field
	e$name<-"Deletion"
	e$name
 
# }

Run the code above in your browser using DataLab