Skip to content
Prev 315972 / 398513 Next

extracting characters from a string

Hello,

Try the following.

fun <- function(x, sep = ", "){
	s <- unlist(strsplit(x, sep))
	regmatches(s, regexpr("[[:alpha:]]*", s))
}

fun(pub)


Hope this helps,

Rui Barradas

Em 23-01-2013 17:38, Biau David escreveu: