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