R/recode-xym.R

Defines functions recodeXYM

recodeXYM <- function(vec) {
  vec[vec=="X"] <- 23
  vec[vec=="Y"] <- 24
  vec[vec=="M"] <- 25
  return(as.numeric(vec))
}
mattwarkentin/genetools documentation built on Nov. 4, 2019, 6:19 p.m.