On Wed, Nov 17, 2010 at 2:59 PM, johannes rara <johannesr...@gmail.com> wrote: > I have a vector like this: > > a <- c("thisIsName", "thisIsAlsoName", "andThisName") > > How to break this into pieces and produce a vector with unique parts: > > this > Is > Name > Also > and > This
Try this: library(gsubfn) strapply(a, ".[[:lower:]]*") See http://gsubfn.googlecode.com for more. -- Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1-877-GKX-GROUP email: ggrothendieck at gmail.com ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.