[R] recode based on filter

Donatas G. dgvirtual at akl.lt
Wed Dec 19 14:32:55 CET 2007


On Wednesday 19 December 2007 14:12:16 rašėte:
> sapply(levels(DATA$know1), function(x)subset(DATA, (know1==x &
> know2==x)), simplify=F)

Hey, thanks, that seems to work!

-- 
Donatas Glodenis
http://dg.lapas.info



More information about the R-help mailing list