Skip to content
Prev 2166 / 7420 Next

Multiple count if style "queries"

Using the reshape package:

require(reshape)
dfm <- melt(data2, id = "ECO_NAME")
dfc <- cast(dfm, ECO_NAME~variable, function(x) length(unique(x)))


Eduard

Am 20.05.2011 23:19, schrieb Chris Mcowen: