Displaying 1 result from an estimated 1 matches for "class_cnt".
Did you mean:
class_cm
2011 Sep 27
1
Counting similar rows
...c4", "c5")), .Names =
c("subject",
"class")), class = c("xtabs", "table"), call = xtabs(formula = ~subject +
class, data = ia))
I want a count of subjects that match the same classes in subject_cnt and a
count of the number of classes in class_cnt The result of this example
should be:
structure(list(subject_cnt = c(2L, 1L, 1L), class_cnt = c(3L,
2L, 3L), c1 = c(1L, 1L, 0L), c2 = c(0L, 1L, 0L), c3 = c(1L, 0L,
1L), c4 = c(0L, 0L, 1L), c5 = c(1L, 0L, 1L)), .Names = c("subject_cnt",
"class_cnt", "c1", "c2&q...