rep_bac: Replication of bacteria

Description Usage Arguments Value Examples

View source: R/rep_bac.R

Description

Randomly replicate bacteria, depending on space available

Usage

1
rep_bac(data, size = 100, rep_bac = 2, rep_bac_res = 0)

Arguments

data

The dataset containing the bacteria information

size

The size of the space within which to place the bacteria or phage. Must be the same as the one used to place them.

rep_bac

Replication rate of bacteria

rep_bac_res

Replication rate of resistant bacteria

Value

An updated dataset

Examples

1
bac_data = rep_bac(data=bac_data, size=100, rep_bac=2,rep_bac_res=2)

qleclerc/spatial_phage documentation built on Dec. 4, 2020, 10:11 p.m.