Skip to content
Prev 315214 / 398503 Next

extracting character values

On 13.01.2013 18:02, Biau David wrote:
There may be an easier solution, but this should do:

res <- data.frame(lapply(netw,
      function(x)
        gsub("^ *([[:alpha:] ]*) +[[:alpha:]]+$", "\\1", x)))

Uwe Ligges