R/degreesOrKnots.fnc.R

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

Try the languageR package in your browser

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

languageR documentation built on May 30, 2017, 3:09 a.m.