Message-ID: <1264286813070-1288418.post@n4.nabble.com>
Date: 2010-01-23T22:46:53Z
From: Dimitri Shvorob
Subject: How to implement a "select distinct x, count(distinct y) ... group by x" for a data frame
... Being an R newbie, I can only think of extracting distinct x values with
unique, looping over them, extracting matching rows from the original data
frame, applying table, and recording the size of table's output alongside
the x value being checked. Is there a more elegant way?
Thank you.
--
View this message in context: http://n4.nabble.com/How-to-implement-a-select-distinct-x-count-distinct-y-group-by-x-for-a-data-frame-tp1288418p1288418.html
Sent from the R help mailing list archive at Nabble.com.