[R] calculating median with a condition

2009-07-20 Thread Manisha Brahmachary
Hello, I am trying to calculate the median of numbers across each row for the data shown below , with the condition that if the number is negative, that it should be ignored and the median should be taken of only the positive numbers. For eg: data is in Column A,B,C. Column D and E

Re: [R] calculating median with a condition

2009-07-20 Thread James W. MacDonald
Hi Manisha, Manisha Brahmachary wrote: Hello, I am trying to calculate the median of numbers across each row for the data shown below , with the condition that if the number is negative, that it should be ignored and the median should be taken of only the positive numbers. For eg:

Re: [R] calculating median with a condition

2009-07-20 Thread Chuck Cleland
On 7/20/2009 2:59 PM, Manisha Brahmachary wrote: Hello, I am trying to calculate the median of numbers across each row for the data shown below , with the condition that if the number is negative, that it should be ignored and the median should be taken of only the positive numbers.