R/removeStrangeChar.R

Defines functions removeStrangeChar

removeStrangeChar <- function(D){
  ind <- numeric(length(D))
  for (i in 1:length(D)){
    #print(i)
    #ind[i] <- nchar(D[i])
    
    res <- try(ind[i] <- nchar(D[i]), silent = TRUE)
    if(inherits(res, "try-error"))
    {
      ind[i] <- 0
      next
    }
  }
  D <- D[ind>1]
}

Try the bibliometrix package in your browser

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

bibliometrix documentation built on July 9, 2023, 6:44 p.m.