[R] Row wise function call.

2005-11-30 Thread Vasundhara Akkineni
I have another issue.i have a function which calculates the log2(col i /col2) value, where i stands for columns 3,4,...etc. data-read.table(table.txt, header=TRUE) iratio-function(x){ for(n in 3:ncol(data)){ z-log2(data[x,n]/data[x,2]) } } Where x- the row number of the data frame(data). i

Re: [R] Row wise function call.

2005-11-30 Thread Henrik Bengtsson
Vasundhara Akkineni wrote: I have another issue.i have a function which calculates the log2(col i /col2) value, where i stands for columns 3,4,...etc. data-read.table(table.txt, header=TRUE) iratio-function(x){ for(n in 3:ncol(data)){ z-log2(data[x,n]/data[x,2]) } } Where x- the row

Re: [R] Row wise function call.

2005-11-30 Thread Vasundhara Akkineni
Thanks, Peter and Henrik. Vasu. On 11/30/05, Henrik Bengtsson [EMAIL PROTECTED] wrote: Vasundhara Akkineni wrote: I have another issue.i have a function which calculates the log2(col i /col2) value, where i stands for columns 3,4,...etc. data-read.table(table.txt, header=TRUE)