Learn R Programming

phylosim (version 3.0.5)

setComments.PSRoot: Set the comments associated with an object

Description

Set the comments associated with an object.

The comment field can contain any type of object.

Usage

# S3 method for PSRoot
setComments(this, new_value, ...)

Arguments

this

A PSRoot object.

new_value

An object.

...

Not used.

Value

The new value of the comment field (invisible).

See Also

For more information see PSRoot.

Examples

Run this code
# NOT RUN {
	# create an object
	o<-PSRoot()
	# add some comments
	setComments(o,"Random comment")
	# get the comment
	getComments(o)
	# get/set the comment via virtual fiels
	o$comments<-"Second random comment"
	o$comments
 
# }

Run the code above in your browser using DataLab