Learn R Programming

phylosim (version 3.0.5)

setSizes.DiscreteDeletor: Set the sizes of the proposed deletions

Description

Set the sizes of the proposed deletions.

The provided numeric vector is rounded.

Usage

# S3 method for DiscreteDeletor
setSizes(this, value, ...)

Arguments

this

A DiscreteDeletor object.

value

A numeric vector.

...

Not used.

Value

A vector of integers (invisible).

See Also

For more information see DiscreteDeletor.

Examples

Run this code
# NOT RUN {
	# create a DiscreteDeletor object
	d<-DiscreteDeletor(rate=1)
	# set deletion sizes    
	setSizes(d,c(1,2,3))
	# get deletion sizes
	getSizes(d)
	# set/get sizes via virtual field
	d$sizes<-1:10
	d$sizes
 
# }

Run the code above in your browser using DataLab