R/get_counter.R

Defines functions get_counter

Documented in get_counter

#' @title FUNCTION_TITLE
#' @description FUNCTION_DESCRIPTION
#' @param x PARAM_DESCRIPTION
#' @return OUTPUT_DESCRIPTION
#' @details DETAILS
#' @examples 
#' \dontrun{
#' if(interactive()){
#'  #EXAMPLE1
#'  }
#' }
#' @rdname get_counter
#' @export 
get_counter <- function(x){
  as.numeric(gsub('^(.*?)COUNTER : | \\|(.*?)$','',grep('### QAPPLY ####\\"',strsplit(x,'\n')[[1]],value=TRUE)))
}
metrumresearchgroup/qibble documentation built on Oct. 27, 2019, 11:44 a.m.