setName.Event: Set the name of an Event object

Description Usage Arguments Value Author(s) See Also Examples

Description

Set the name of an Event object.

Usage

1
2
## S3 method for class '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).

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see Event.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
	# 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
 

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