Re: [R] Append to csv without header

2010-08-11 Thread harsh yadav
Hi, Thanks a lot. It worked with:- write.table(data, file = outputModelFilePath, append=T, sep=",", col.names=F) Regards, Harsh Yadav On Wed, Aug 11, 2010 at 11:53 PM, David Winsemius wrote: > > On Aug 11, 2010, at 10:29 PM, harsh yadav wrote: > > Hi, >> >

[R] Append to csv without header

2010-08-11 Thread harsh yadav
write.csv(dataF, file = outputFilePath, append=T,col.names=NA) } counter <- counter + 1 } I tried setting col.names = F (In append=T), but no good. Can anyone throw light on the correct usage. Thanks in advance. Regards, Harsh Yadav [[alternative HTML version deleted]] __

Re: [R] Bigmemory: Error Running Example

2010-08-11 Thread harsh yadav
Regards, Harsh Yadav On Wed, Aug 11, 2010 at 5:00 PM, Jay Emerson wrote: > > It seems very likely you are working on a 32-bit version of R, but it's a > little surprising still that you would have a problem with any single year. > Please tell us the operating system and versi

[R] Bigmemory: Error Running Example

2010-08-10 Thread harsh yadav
0 618 117 1191838 Anyone who has previously worked with bigmemory before could throw some light on it. Were you able to run the examples successfully? Thanks in advance. Harsh Yadav [[alternative HTML version deleted]] ___

[R] Reading timestamp column from MySQL

2010-07-28 Thread harsh yadav
converted to same value: 1.236887e+12 Any ideas of how this could be dealt with, so that I can get the entire timestamp field. Thanks in advance. Regards, Harsh Yadav [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

[R] Left Outer Join 2 DF's on Multiple Conditions

2010-07-25 Thread harsh yadav
*In the merge step, I want to include the following condition of merging:-* tab1.data1 - tab2.mouseX = 0 And tab1.data2 - tab2.mouseY = 0 Any ideas how this could be done. Thanks in advance. Regards, Harsh Yadav [[alternative HTML version deleted]] _

[R] Updating a Data Frame

2010-07-22 Thread harsh yadav
ataF) > 0){ len <- nrow(dataF) for(i in 1:len){ updateDB(dataF[i,"eventid"], dataF[i,"tobiiTime"], dataF[i,"ruiTime"]) } } } However, this particular update functionality is performing very slow updates. Is there a better and more efficient way to update mult

[R] Error using sqldf

2010-07-20 Thread harsh yadav
qliteExecStatement(con, statement, bind.data) : RS-DBI driver: (error in statement: near "(": syntax error) Can you guys suggest me where I am going wrong in passing in variable to sqldf() query. Thanks in advance. Harsh Yadav [[alternative HTML version deleted]] _

[R] Comparison of two very large strings

2010-07-12 Thread harsh yadav
omparison step. Any ideas how it can be implemented in a fast and efficient way. Thanks and Regards, Harsh Yadav [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do re

Re: [R] Data Frame Manipulation using function

2010-07-09 Thread harsh yadav
Hi, Thanks a lot. The Vectorize method worked and its much faster than looping through the data frame. Regards, Harsh Yadav On Thu, Jul 8, 2010 at 11:06 PM, David Winsemius wrote: > > On Jul 8, 2010, at 10:33 PM, Erik Iverson wrote: > > >> I have a data frame: >>>

Re: [R] Data Frame Manipulation using function

2010-07-08 Thread harsh yadav
would check whether the column `urlType` contains row values that != 1, and the column `url` contains row values that satisfy the function definition. Any ideas how this can be done? Thanks in advance. Regards, Harsh Yadav On Thu, Jul 8, 2010 at 9:43 PM, Erik Iverson wrote: > It will be a lot ea

[R] Data Frame Manipulation using function

2010-07-08 Thread harsh yadav
d function. Any ideas how this can be done? Thanks in advance. Regards, Harsh Yadav [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting gu

[R] Index of Character

2010-06-30 Thread harsh yadav
ld find other useful string functions, but not the index function. Thanks in advance. Regards, Harsh Yadav [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read th

[R] Error: cannot allocate vector of size 31.8 Mb

2010-06-18 Thread harsh yadav
in advance, Harsh Yadav [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented