FitLandDF | R Documentation |
Create New FitLandDF Instance
FitLandDF(scape_data, dims = dim(scape_data))
scape_data |
either data.frame or array object |
dims |
integer vector containing dimensions |
FitLandDF object
# 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.