[R] How to subset data, by sorting names alphabetically.

samarvir singh samarvir1996 at gmail.com
Thu Feb 12 05:57:55 CET 2015


hello,

I am cleaning some large data with 4 million observation and 7 variable.
Of the 7 variables , 1 is name/string

I want to subset data, which have same name

Example-

 Name var1 var2 var3 var4 var5 var6
aa        -       -       -         -     -        -
ab
bd
ac
ad
af
ba
bd
aa
av

i want to sort the data something like this

aa
aa
all aa in a same subset

and all ab in same subset

every column with same name in a subset



thanks in advance.
I am new to R community.
appreciate your help
- Samarvir

	[[alternative HTML version deleted]]



More information about the R-help mailing list