search for: sab2

Displaying 1 result from an estimated 1 matches for "sab2".

Did you mean: sab
2011 Jan 19
0
$ operator is invalid for atomic vectors
...#39;Group A', 'Group A', 'Group C', 'Group B', 'Group C'), gender=c(1,1,1,2,2)) subset(sab, sab$group=='Group A') Perhaps your data is stored as a matrix? If so, the following code will fail with the error message you experienced. # Non Working Example sab2 = matrix(c('Group A', 'Group A', 'Group C', 'Group B', 'Group C',1,1,1,2,2),5,2) subset(sab2, sab2$group=='Group A') HTH Pete -- View this message in context: http://r.789695.n4.nabble.com/operator-is-invalid-for-atomic-vectors-tp3224224p3224318.h...