Learn R Programming

ypr (version 0.6.0)

as_ypr_ecotypes: Coerce to an Ecotypes Object

Description

Coerce to an Ecotypes Object

Usage

as_ypr_ecotypes(x, ...)

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

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

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

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

Value

An object of class ypr_ecotypes.

Arguments

x

The object to coerce.

...

Additional arguments.

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

Run this code
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)))

Run the code above in your browser using DataLab