as.landscape.matrix: transfer matrix to landscape.

Description Usage Arguments Details Value

View source: R/landscape.R

Description

transfer matrix to landscape.

Usage

1
2
## S3 method for class 'matrix'
as.landscape(x, states = NA)

Arguments

x

A matrix object with factorial content.

levels

A character vector giving the original sequence of states.

Details

If no vector levels is specified the levels are coerced from the unique states of the matrix, which might cause loss of states (e.g. if not present on this landscape) or a wrong ordering of states. This is not recommended! Always provide a levels vector!

Value

A landscape object.


caspr documentation built on May 2, 2019, 5:25 p.m.