as_ypr_population {ypr}R Documentation

Coerce to a Population Object

Description

Coerce to a Population Object

Usage

as_ypr_population(x, ...)

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

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

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

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

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

Arguments

x

The object to coerce.

...

Unused.

Value

An object of class ypr_population.

Methods (by class)

Functions

Examples

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))))

[Package ypr version 0.6.0 Index]