View source: R/get_locus_data.R
get_locus_data | R Documentation |
Extracts a tibble with the data for one locus from a locus-wise dataset through time.
get_locus_data(i, data, variables, add_time = FALSE)
i |
Index of the locus to extract data for |
data |
Locus-wise data frame trough time (see |
variables |
String vector with the names of the columns to extract |
add_time |
Whether or not to extract the "time" column as well |
A tibble
read_loci
root <- system.file("extdata", "sim-example", package = "speciomer") data <- read_loci(root, "Fst") get_locus_data(1, data, "Fst")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.