R/as_three_letter.R

Defines functions as_three_letter

as_three_letter <- function(x) {

  y <- x
  # grantham::as_three_letter converts "-" and "X" to NA,
  # align_gvgd::as_three_letter preserves them.
  y <- grantham::as_three_letter(x)
  y[x == '-'] <- '-'
  y[x == 'X'| x == 'x'] <- 'X'

  return(y)
}

Try the agvgd package in your browser

Any scripts or data that you put into this service are public.

agvgd documentation built on Sept. 11, 2022, 1:07 a.m.