R/fun.test.R

Defines functions fun.test

Documented in fun.test

#' A search Function
#'
#' This function allows you to match the seedwords to specific article.
#' @param x Any string.
#' @keywords removeNumbers
#' @export
#' @examples
#' fun.test()


fun.test <- function(seedwords,originalTextFile = originalTextFile,listname=NULL){
for(i in 1:length(originalTextFile)){
if(grepl(seedwords, originalTextFile[i])){
listname <- c(listname,i)
}
}
return(listname)
}
rogerjms/tmcmbc documentation built on May 6, 2019, 6:06 p.m.