Learn R Programming

phylosim (version 3.0.5)

getComments.PSRoot: Get the comments associated with an object

Description

Get the comments associated with an object.

The comment field can contain any type of object.

Usage

# S3 method for PSRoot
getComments(this, ...)

Arguments

this

A PSRoot object.

...

Not used.

Value

The value of the comment field.

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