read_population: Read population-wide data

View source: R/read_population.R

read_populationR Documentation

Read population-wide data

Description

Wrapper around read_speciome for variables with one value per time point.

Usage

read_population(root, variables, ncols = NULL)

Arguments

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 read_speciome.

Value

A tibble containing the simulation data

Note

The function will read "time.dat" as an extra variable, no need to supply it.

See Also

read_speciome

Examples


root <- system.file("extdata", "sim-example", package = "speciomer")
read_population(root, c("EI", "RI", "SI"))
read_population(root, c("EI", "trait_Fst"), ncols = c(1, 3))


rscherrer/speciomer documentation built on March 11, 2023, 5:37 p.m.