R/each_line.R

Defines functions each_line

each_line <- function(y, additional) {
  oth <- NULL
  normal <- Map(function(a,b) subs(y, a, b),
                pluck(control_mand_secs, "start"),
                pluck(control_mand_secs, "stop"))
  if (additional) {
    other <- gsub("\\s+$", "", substring(y, 106, nchar(y)))
    oth <- proc_other(other)
  }
  if (is.null(oth)) {
    normal
  } else {
    c(normal, oth)
  }
}

Try the isdparser package in your browser

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

isdparser documentation built on Feb. 18, 2020, 1:09 a.m.