[R] Syntax for nls optimization function

2012-06-14 Thread HC
I am working on minimization of sum of squared errors for a problem that has 2 box-constrained parameters. I got the solution for this problem using "L-BFGS-B" method in optim function using an R code as res<-optim(par=c(parInit), fn=myFunction, method = c("L-BFGS-B"), lower = parMin, upper = par

Re: [R] sqldf for Very Large Tab Delimited Files

2012-02-04 Thread HC
Is there any way to skip this line with readLines or any other function? I am only hoping that the data after this bad line is good and I can read them if I can skip the bad one. Thank you. HC -- View this message in context: http://r.789695.n4.nabble.com/sqldf-for-Very-Large-Tab-Delim

Re: [R] sqldf for Very Large Tab Delimited Files

2012-02-03 Thread HC
N=1.25 million, it wrote 28 files of about 57 mb each. That is a total of about 1.6 GB and then crashed. I tried with other values on N and it crashes at about the same place in terms of total size output, i.e., about 1.6 GB. Is this due to any limitation of Windows 7, in terms of not having the

Re: [R] sqldf for Very Large Tab Delimited Files

2012-02-03 Thread HC
speed benefit as compared to readLines? Thank you. HC -- View this message in context: http://r.789695.n4.nabble.com/sqldf-for-Very-Large-Tab-Delimited-Files-tp4350555p4355362.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r

Re: [R] sqldf for Very Large Tab Delimited Files

2012-02-03 Thread HC
This is a 160 GB tab-separated .txt file. It has 9 columns and 3.25x10^9 rows. Can R handle it? Thank you. HC -- View this message in context: http://r.789695.n4.nabble.com/sqldf-for-Very-Large-Tab-Delimited-Files-tp4350555p4354556.html Sent from the R help mailing list archive at

Re: [R] sqldf for Very Large Tab Delimited Files

2012-02-03 Thread HC
Thank you for indicating that SQLite may not handle a file as big as 160 GB. Would you know of any utility for *physically splitting *the 160 GB text file into pieces. And if one can control the splitting at the end of a record. Thank you again. HC -- View this message in context: http://r

Re: [R] sqldf for Very Large Tab Delimited Files

2012-02-02 Thread HC
missing something in the above code that is preventing handling of this big 160 GB file? (2) Should this be handled outside of R, if R is becoming a limitation in this? And if yes then what is a possible way forward? Thank you again for your quick response and all the help. HC http://r.789695.n4

[R] sqldf for Very Large Tab Delimited Files

2012-02-01 Thread HC
irginica" #attr(f1, "names") <- c("A1","A2","A3","A4","A5") #res2<-fn$sqldf("select * from main.irisTab1 where A5 = '$a1'") In the above, I am not able to: (1) assign the names to various columns (2) query for p

Re: [R] Downloading tab separated data from internet

2011-12-03 Thread HC
t functions I should be using. Are there any examples available that could be helpful. Could you point me to those please. Thanks for the help. HC -- View this message in context: http://r.789695.n4.nabble.com/Downloading-tab-separated-data-from-internet-tp4152318p4153063.html Sent from the R

[R] Downloading tab separated data from internet

2011-12-03 Thread HC
load the data, either as displayed in the browser or by saving as a file. Any help on this is most appreciated. Thanks. HC -- View this message in context: http://r.789695.n4.nabble.com/Downloading-tab-separated-data-from-internet-tp4152318p4152318.html Sent from the R help mailing list archi

Re: [R] adaptIntegrate - how to pass additional parameters to the integrand

2011-05-03 Thread HC
Dr. Ligges, Thanks a lot for providing syntax for passing additional parameters. It worked for me and has solved my problem. Many thanks for your quick help. HC -- View this message in context: http://r.789695.n4.nabble.com/adaptIntegrate-how-to-pass-additional-parameters-to-the-integrand

[R] adaptIntegrate - how to pass additional parameters to the integrand

2011-05-02 Thread HC
alternative to such restrictions, if there at all are? Many thanks for your time. HC -- View this message in context: http://r.789695.n4.nabble.com/adaptIntegrate-how-to-pass-additional-parameters-to-the-integrand-tp3491701p3491701.html Sent from the R help mailing list archive at Nabble.com

Re: [R] Error message in as.brob Usage

2010-10-08 Thread HC
Thank you very much Josh. Yes, I notice that there is indeed some NAs going into the as.brob function that I was using. I think I have to resolve that before invoking the as.brob function. Thanks again. Chow -- View this message in context: http://r.789695.n4.nabble.com/Error-message-in-as-brob

[R] Error message in as.brob Usage

2010-10-07 Thread HC
I am getting the following error message while using the as.brob function in some computations: Error in out.x[ss] <- pmax(x1[ss], x2[ss]) + log1p(+exp(-abs(x1[ss] - : NAs are not allowed in subscripted assignments Is there any obvious mistake I am making here that can resolve the above erro

Re: [R] hatching posibility in Panel.Polygon

2010-07-27 Thread HC
cs that already very useful, attractive and efficient. Regards. HC -- View this message in context: http://r.789695.n4.nabble.com/hatching-posibility-in-Panel-Polygon-tp2301863p2304414.html Sent from the R help mailing list archive at Nabble.com. __

Re: [R] hatching posibility in Panel.Polygon

2010-07-26 Thread HC
d for this and that is why I was trying to figure out a way for doing it. Since the option is not there right now, I will use "lines' to show the comparison and be content with that for the time being! Once again, thank you very much for your help. HC -- View this message in context:

[R] hatching posibility in Panel.Polygon

2010-07-25 Thread HC
Hatching with lines can be done in polygon function using density and angle arguments. Is similar possibility of hatching polygons available when using panel.polygon while trying to plot in panels using lattice? Many thanks in advance for your help. HC -- View this message in context: http

[R] stats::decompose - Problem finding seasonal component without trend

2009-07-08 Thread Mike HC
Hi R-help, I'd like to extract the seasonal component of a short timeseries, and was hoping to use stats::decompose. I don't want to decompose the 'trend' component so I thought I should call decompose(x,filter=0). I think I've either misunderstood the filter argument or come upon a bug/feature