setName.Process: Set the name of a Process object

Description Usage Arguments Value Author(s) See Also Examples

Description

Set the name of a Process object.

This method also updates the unique identifier of the Process object.

Usage

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

Arguments

this

A Process object.

new.name

A character vector of length one.

...

Not used.

Value

Returns the new name (invisible).

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see Process.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
	# create object
	p<-Process()
	# get name
	p$name
	# set new name
	getName(p)
	# get name and id
	p$name
	p$id
	# set new name via virtual field
	p$name<-"Procey"
	p$name
 

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