R/stripTags.R

stripTags <-
function(Cell){
  Cell <- strsplit(Cell, "</*[A-Za-z][^>]*>")[[1]]
  Cell <- paste(Cell, collapse=" ")
  Cell <- gsub("&nbsp;", " ", Cell)
  Cell <- gsub(" +", " ", Cell)
  Cell <- gsub("^ ", "", Cell)
  Cell <- gsub(" $", "", Cell)
  return(Cell)
}

Try the OIdata package in your browser

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

OIdata documentation built on May 2, 2019, 2:14 p.m.