
Order marker IDs based on their chromosome numbers and positions in ascending order.
Source:R/utils.R
order_markers.Rd
Order marker IDs based on their chromosome numbers and positions in ascending order.
Examples
# example code
map_file <- data.frame(snpid = paste0('S', rep(1:2, 5), '_', 1001:1005),
chr = rep(1:2, 5),
pos = rep(1001:1005, 2))
# Order map file
map_file <- order_markers(x = map_file,
chr_col = 'chr',
pos_col = 'pos')