get_locus_data: Extract data for one locus

View source: R/get_locus_data.R

get_locus_dataR Documentation

Extract data for one locus

Description

Extracts a tibble with the data for one locus from a locus-wise dataset through time.

Usage

get_locus_data(i, data, variables, add_time = FALSE)

Arguments

i

Index of the locus to extract data for

data

Locus-wise data frame trough time (see ?read_loci)

variables

String vector with the names of the columns to extract

add_time

Whether or not to extract the "time" column as well

Value

A tibble

See Also

read_loci

Examples


root <- system.file("extdata", "sim-example", package = "speciomer")
data <- read_loci(root, "Fst")
get_locus_data(1, data, "Fst")


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