#' Chromosome Numeric
#'
#' @description Convert chromosome names from character to numeric.
#' Useful when sorting a dataframe by chromosome number.
#' @param Chr a character column or vector of chromosome names
#' @keywords helper
#' @export
chr_numeric <- function(Chr) {
as.numeric(substring(Chr, 4))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.