R/otherStrand.R

Defines functions otherStrand

Documented in otherStrand

otherStrand = function(x) {
  x  = as.character(x)
  mt = match(x, c("-", "+"))
  if(any(is.na(mt)))
    stop("All elements of 'x' must be + or -.")
  return(c("+", "-")[mt])
}

Try the tilingArray package in your browser

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

tilingArray documentation built on Nov. 8, 2020, 10:59 p.m.