read_loci: Read locus-wise data

View source: R/read_loci.R

read_lociR Documentation

Read locus-wise data

Description

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

Usage

read_loci(root, variables, architecture = TRUE)

Arguments

root

Path to the simulation folder

variables

Vector of names of variable to read (will be interpreted using interpret_variable_names)

architecture

Whether to append locus-wise genetic architecture parameters (see ?read_architecture).

Details

The function will read "paramlog.txt" in order to know by how many loci to duplicate each time point.

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_loci(root, "locus_Fst")


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