# Read in a single .Q file
q_mat <- read.table(system.file("extdata", "anolis", "anolis_ld_run1.3.Q",
package = "tidypopgen"
))
class(q_mat)
# Convert to a Q matrix object
q_mat <- q_matrix(q_mat)
class(q_mat)
Run the code above in your browser using DataLab