R/getRoot.fnc.R

Defines functions `getRoot.fnc`

`getRoot.fnc` <-
function(xlabel) {
  a = regexpr("poly\\(", xlabel)
  if (a==1) {
    base = substr(xlabel, attr(a,"match.length"),nchar(xlabel))
    tmp = strsplit(base, ",")[[1]][1]
    return(substr(tmp, 2, nchar(tmp)))
  } else
    base=xlabel
  return(base)
}

Try the languageR package in your browser

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

languageR documentation built on May 2, 2019, 10:02 a.m.