Re: [R] recode based on filter

From: Donatas G. <dgvirtual_at_akl.lt>
Date: Wed, 19 Dec 2007 15:32:55 +0200

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

______________________________________________
R-help_at_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.
Received on Wed 19 Dec 2007 - 13:37:48 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 19 Dec 2007 - 14:00:20 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.