R/parsePredName.fnc.R

Defines functions `parsePredName.fnc`

`parsePredName.fnc` <-
function(name) {
  s = strsplit(name, "[\\(\\)]")[[1]][2]
  s2 = strsplit(s, ", ")[[1]]
  return(list(baseName=s2[1], knots=as.numeric(s2[2])))
}

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.