nkmodel: NK Model

Description Usage Arguments Value Author(s) Examples

View source: R/nkmodel.R

Description

Simulates

Usage

1
nkmodel(numGenerations, N, K)

Arguments

numGenerations

Number of generations

N

Number of traits

K

Number of other traits which have a fitness contribution of each trait

Value

agentsDF

Data.frame with the last fitness

statesDF

Data.frame with the fitness of each state

Author(s)

Gabriel Lima

Examples

1
2
3
4
listResult <- nkmodel(2000, 8, 3)

agentsDF <- listResult[[1]]
statesDF <- listResult[[2]]

gabriel-slima/nkmodel documentation built on May 27, 2019, 7:40 a.m.