Learn R Programming

phylosim (version 3.0.5)

setName.Process: Set the name of a Process object

Description

Set the name of a Process object.

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

Usage

# S3 method for 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).

See Also

For more information see Process.

Examples

Run this code
# NOT RUN {
	# 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
 
# }

Run the code above in your browser using DataLab