Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


ypr (version 0.6.0)

as_ypr_population: Coerce to a Population Object

Description

Coerce to a Population Object

Usage

as_ypr_population(x, ...)

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

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

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

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

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

Value

An object of class ypr_population.

Arguments

x

The object to coerce.

...

Unused.

Methods (by class)

  • as_ypr_population(data.frame): Coerce a data.frame to an Population Object

  • as_ypr_population(ypr_population): Coerce a Population Object to an Population Object

  • as_ypr_population(ypr_populations): Coerce a Populations Object of length 1 to a Population Object

  • as_ypr_population(ypr_ecotypes): Coerce a Ecotypes Object of length 1 to a Population Object

Functions

  • as_ypr_populations(data.frame): Coerce a data.frame to a Populations Object

Examples

Run this code
as_ypr_population(as.data.frame(ypr_population()))
as_ypr_population(ypr_populations())
as_ypr_population(ypr_populations())
as_ypr_population(ypr_ecotypes())
as_ypr_populations(as.data.frame(ypr_populations(Rk = c(3, 4))))

Run the code above in your browser using DataLab