Skip to content
Prev 258689 / 398502 Next

UNIX-like "cut" command in R

x <- "this is a string"
unlist(strsplit(x," "))[c(1,4)]

HTH Christian