assign_species_to_events: Assign species to events

Description Usage Arguments Value

View source: R/assign_species_to_events.R

Description

This function puts species into co-expansion events randomly or evenly The number of co-expansion events is specified by the user

Usage

1
assign_species_to_events(species, nco.events, even = F)

Arguments

species

A vector of species names, integers are treated as characters

nco.events

Integer. The number of co-expansion events

even

TRUE or FALSE(Default). The default is to assign species randomly. IF TRUE, will spread species evenly acrosss events

Value

A list, the length of which is equal to the number of events. Each element of the list is a vector of species names assigned to the event.


huatengh/CoExpansionValidation documentation built on Nov. 19, 2021, 11:07 a.m.