View source: R/read_individuals.R
read_individuals | R Documentation |
Wrapper around read_speciome
for variables with one value per
individual per time point.
read_individuals(root, variables, ncols = NULL)
root |
Path to the simulation folder |
variables |
Vector of names of variable to read |
ncols |
Vector or list indicating how to split or duplicate each variable
when constructing the tibble. See |
The function will read "population_sizes.dat" in order to know by how many individuals to duplicate each time point, as the number of individuals may change from one generation to the next.
A tibble containing the simulation data
The function will read "time.dat" as an extra variable, no need to supply it.
read_speciome
root <- system.file("extdata", "sim-example", package = "speciomer") read_individuals(root, "individual_ecotypes") read_individuals(root, c("individual_traits", "individual_ecotypes"), ncols = c(3, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.