search for: adrian_humbert

Displaying 5 results from an estimated 5 matches for "adrian_humbert".

2003 May 06
3
how to read a web page and extract an html table?
Hello all, I want to read a table from a given web page. If I do something like > str="http://www...." # this is the web address > aux1 <- url(str,open="rt")# open connection > aux2 <- readLines(aux1) # read web page aux2 contains the html file. I want to extract the table from the html file. Is there a function html2R, the opposite of R2html?
2003 Jul 18
3
question about formulating a nls optimization
Dear list, I'm migrating a project from Matlab to R, and I'm facing a relatively complicated problem for nls. My objective function is below: >> objFun <- function(yEx,xEx,tEx,gamma,theta,kappa){ yTh <- pdfDY(xEx,tEx,gamma,theta,kappa) sum(log(yEx/yTh)^2) } The equation is yTh=P(xEx,tEx) + noise. I collect my data in: >> data <-
2003 May 12
1
problems with Rcmd BATCH (PR#2965)
Hello, I have a test file that runs OK with > Rterm.exe --no-restore < filename.R When I try > Rcmd BATCH filename.R I get the following error message: Can't locate R/Utils.pm in @INC (@INC contains: C:\PROGRA~1\R\rw1070\share\perl c:/Perl/lib c:/Perl/site/lib .) at C:\PROGRA~1\R\rw1070/bin/BATCH line 22. BEGIN failed--compilation aborted at C:\PROGRA~1\R\rw1070/bin/BATCH
2004 Feb 16
0
error in nls, step factor reduced below minFactor
Hello, I am trying to estimate 4 parameters of a non-linear model using nls. My model function is a Fourier integral and is very expensive to calculate. I get the following error: > theta0 <- c(0.045, 1.02*10^(-4), 0.00169, 5.67*10^(-4)) > res <- nls(log(y) ~ log(model(theta,r,t)), data=dataModel, + start=list(theta=theta0), trace=TRUE, + control=nls.control(tol=1e-2))
2004 Feb 20
1
Does pdf() not work on Trellis graphics?
Hello, I have the following example. testpdf <- function(x,y){ pdf() #plot(x,y) xyplot(x~y) dev.off() } source("testpdf.R") x=1:1000 testpdf(x,x) with "xyplot", the output is a file that can not be read because it has no pages. With "plot" it works fine. If I do it manually (from the GUI menu), it works even for "xyplot". How can I save