FitLandDF: Create New FitLandDF Instance

View source: R/FitLandDF.R

FitLandDFR Documentation

Create New FitLandDF Instance

Description

Create New FitLandDF Instance

Usage

FitLandDF(scape_data, dims = dim(scape_data))

Arguments

scape_data

either data.frame or array object

dims

integer vector containing dimensions

Value

FitLandDF object

Examples

# create a flat fitness landscape with 3 binary (values 1 and 2) dimensions
values <- array(2, dim = rep(2, 3))

my_landscape <- FitLandDF(values)

# create a 2x2 fitness landscape that's highest when both dimensions are at 1
vals <- 1:2
df <- expand.grid(vals, vals)
df$Landscape_value <- c(1, 2, 3, 6)

my_landscape <- FitLandDF(df, dims = c(2L, 2L))

fitscape documentation built on March 18, 2022, 5:57 p.m.

Related to FitLandDF in fitscape...