Skip to content
Prev 322488 / 398500 Next

Splitting data.frame and saving to csv files

Hint:

nm <- substring(names(df). 1,3)

gives the first 3 letters of the names, assuming this is the info
needed for classifying the names -- you were not explicit about this.
If some sort of pattern is used, ?grep may be what you need.

You can then pick columns from df by e.g. loopingt through unique(nm)...

etc.

-- Bert

On Fri, Apr 26, 2013 at 6:21 AM, Katherine Gobin
<katherine_gobin at yahoo.com> wrote: