Re: [R] Calling a function to store values

2011-03-03 Thread Kumaraguru Paramasivam
Hi, I tried this approach. cdata_1_1_3 <- readData(cData1,1,3) cdata_2_4_7 <- readData(cData2,4,7) Its still not working. The result I get is NULL. Thanks, Kumar On Thu, Mar 3, 2011 at 9:50 AM, David Winsemius wrote: > > On Mar 3, 2011, at 10:12 AM, kparamas wrote: > > Hi, >> >> I am calling

Re: [R] Calling a function to store values

2011-03-03 Thread David Winsemius
On Mar 3, 2011, at 1:49 PM, Kumaraguru Paramasivam wrote: > Hi, > > I tried this approach. > cdata_1_1_3 <- readData(cData1,1,3) > cdata_2_4_7 <- readData(cData2,4,7) > > Its still not working. The result I get is NULL. Then the function (which you have not provided) is faulty, but there is no

Re: [R] Calling a function to store values

2011-03-03 Thread David Winsemius
On Mar 3, 2011, at 10:12 AM, kparamas wrote: Hi, I am calling a function with different arguments to read different files and want the results to be stored in different matrices. Ex: cData1 = NULL cData2 = NULL readData = function(cData, start, end) { cData = //reads from the file

[R] Calling a function to store values

2011-03-03 Thread kparamas
Hi, I am calling a function with different arguments to read different files and want the results to be stored in different matrices. Ex: cData1 = NULL cData2 = NULL readData = function(cData, start, end) { cData = //reads from the file } I am calling the functions using readData(cData