Expand interaction dataset to include zeroes (unobserved interactions)
Source:R/expand_unobs.R
expand_unobs.Rd
Expand interaction dataset to include zeroes (unobserved interactions)
Usage
expand_unobs(
df = NULL,
plant.var = "Plant",
animal.var = "Animal",
int.var = "Visits",
fill.value = 0
)
Arguments
- df
A data frame with interaction presence or frequency data
- plant.var
character. Name of the column representing plants.
- animal.var
character. Name of the column representing animals.
- int.var
character. Name of the column representing interaction presence or frequency.
- fill.value
Value to use in
int.var
for unobserved interactions.