I want a simple count of the number of subjects in each condition of a study. The data look something like this:
subjectid cond obser variable 1234
or, if you like SQL and don't mind installing a package:
library(sqldf); sqldf("select cond, count(distinct subjectid) from dat")