FitLandDF {fitscape}R 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))

[Package fitscape version 0.1.0 Index]