[R] Simple lme/lmer random effects questions

2008-08-11 Thread Brandon Invergo
Hello, I have two very rudimentary questions regarding the random effects terms in the lme and lmer functions. I apologize if this also partly strays into a general statistics question, but I'm a bit new to this all. So hopefully it'll be a quick problem to sort out... Here is my experimenta

Re: [R] number of an element in a matrix

2008-08-11 Thread Brandon Invergo
You can use the length() and which() functions for that: > length(which(m == 2)) cheers, brandon rostam shahname wrote: Hi, I wonder if there is any function which gives the number of times which an element is repeated in the matrix. Let say there is a matrix, I would like to find out how man