Re: [R] Loading data to Trellis barchart plot.

2009-10-11 Thread kaixin maleA
Dear all, I have a question about loading the data to barchart plot. I know this could be a very easy question, but I just can not get my head around. What I need to do is to create a trellis plots barchart style (horizontal bar), with levels of one variable (ie. variable “colour” in my examp

Re: [R] Help with R Function writing for Matrix

2009-08-10 Thread kaixin maleA
Dear all, I have a task to find the first all zero row of a matrix X ( nothing known about X). I need to write a function which returns either the row index of the first all-zero row, or NA if there are no all-zero rows. and I also need to locate all rows which are non-zero (should be a vector of