R/splitfixed.R

Defines functions splitfixed

Documented in splitfixed

#' splitfixed
#'
#' Split string between two instances of "_"
#' @param x String
#' @param n first iteration of _
#' @param n last iteration of _
#' @export
splitfixed = function(x, n, i){
  do.call(c, lapply(x, function(X)
    paste(unlist(strsplit(X, "_"))[(n+1):(i)], collapse = "_")))
}
nbarsch/pineium documentation built on July 12, 2022, 11:40 p.m.