#' Utility Function to Extract SNV #' #' @param x string #' @param n number of characters from right #' #' @return string #' @noRd #' @examples #' substrRight("Hello", 2) #' substrRight <- function(x, n) x <- as.character(x) substr(x, nchar(x) - n + 1, nchar(x)) Histogram of Variants Per Sample Colored By Variant Classification
Source:R/plotting-functions.R
ggsamplevar.Rd
#' Utility Function to Extract SNV #' #' @param x string #' @param n number of characters from right #' #' @return string #' @noRd #' @examples #' substrRight("Hello", 2) #' substrRight <- function(x, n) x <- as.character(x) substr(x, nchar(x) - n + 1, nchar(x)) Histogram of Variants Per Sample Colored By Variant Classification
Examples
ggsamplevar(gnomeR::mutations)