as_ypr_ecotypes: Coerce to an Ecotypes Object

View source: R/as-ypr-ecotypes.R

as_ypr_ecotypesR Documentation

Coerce to an Ecotypes Object

Description

Coerce to an Ecotypes Object

Usage

as_ypr_ecotypes(x, ...)

## S3 method for class 'data.frame'
as_ypr_ecotypes(x, ...)

## S3 method for class 'ypr_population'
as_ypr_ecotypes(x, ...)

## S3 method for class 'ypr_populations'
as_ypr_ecotypes(x, ...)

## S3 method for class 'ypr_ecotypes'
as_ypr_ecotypes(x, ...)

Arguments

x

The object to coerce.

...

Additional arguments.

Value

An object of class ypr_ecotypes.

Methods (by class)

  • as_ypr_ecotypes(data.frame): Coerce a data.frame to an Ecotypes Object

  • as_ypr_ecotypes(ypr_population): Coerce a Population Object to an Ecotypes Object

  • as_ypr_ecotypes(ypr_populations): Coerce a Populations Object to an Ecotypes Object

  • as_ypr_ecotypes(ypr_ecotypes): Coerce an Ecotypes Object to an Ecotypes Object

See Also

Other ecotypes: ypr_ecotypes()

Examples

as_ypr_ecotypes(as.data.frame(ypr_ecotypes(Ls = c(10, 15, 20))))
as_ypr_ecotypes(ypr_population())
as_ypr_ecotypes(ypr_populations(Ls = c(10, 15, 20)))
as_ypr_ecotypes(ypr_ecotypes(Ls = c(10, 15, 20)))

poissonconsulting/ypr documentation built on April 4, 2023, 8:35 p.m.