View source: R/get_locus_data_n.R
get_locus_data_n | R Documentation |
Same as get_locus_data
but extracting from a data frame nested by
locus (which is much faster).
get_locus_data_n(i, data_n, variables, add_time = FALSE)
i |
Index of the locus to extract data for |
data_n |
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
, dplyr::group_by
, tidyr::nest
root <- system.file("extdata", "sim-example", package = "speciomer") data <- read_loci(root, "Fst") data <- data %>% dplyr::group_by(locus) %>% tidyr::nest() get_locus_data_n(1, data, "Fst")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.