move_any: Movement of bacteria or phage

Description Usage Arguments Value Examples

View source: R/move_any.R

Description

Randomly moves bacteria or phage within the delimited space

Usage

1
move_any(data, size = 100, movement = 5)

Arguments

data

The dataset containing the bacteria or phage 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.

movement

The maximum distance that bacteria or phage can move during one generation

Value

An updated dataset

Examples

1
bac_data = move_any(data=bac_data, size=100, movement=5)

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