rps: Rock-Paper-Scissors Intransitive Competition Model

Description Usage Arguments Value Examples

View source: R/rps.R

Description

Rock-Paper-Scissors Intransitive Competition Model

Usage

1
rps(time, init_r, init_p, init_s, b)

Arguments

time

Vector of time points at which to evaluate system

init_r

Initial proportion playing strategy Rock

init_p

Initial proportion playing strategy Paper

init_s

Initial proportion playing strategy Scissors

b

Benefit to winner of competition

Value

Tidy data frame with three columns:

Time Same values and units as argument time
Strategy One of 'Rock', 'Paper', or 'Scissors'
Proportion Proportion of population playing given strategy at given time

Examples

1
2
t <- seq(0, 50, 0.1)
rps(time = t, init_r = 0.01, init_p = 0.4, init_s = 0.5, b = 0.6)

patrickbarks/popmods documentation built on May 21, 2019, 2:07 p.m.