[Rd] errors in getconnection or scan

2010-12-13 Thread Arthur Charpentier
I was wondering if there was a function like "does connection exists" ? I am currently using loops to build up a database, and I have either > B = getConnection(localization) Error in getConnection(localization) : there is no connection -2147483648 In addition: Warning message: In getConnection(l

Re: [Rd] errors in getconnection or scan

2010-12-13 Thread Arthur Charpentier
ultsfromtennis.com/2007/atp/wimbledon.html"; does exist, I can get the tables inside but "http://www.resultsfromtennis.com/1977/atp/shertogenbosch.html"; does not exist... is there a way to detect that the html page does not exist ? 2010/12/13 Duncan Murdoch > On 13/12/201

Re: [Rd] errors in getconnection or scan

2010-12-13 Thread Arthur Charpentier
great, exactly what I've being looking for ! thanks a lot ! 2010/12/13 Duncan Murdoch > On 13/12/2010 12:56 PM, Arthur Charpentier wrote: > >> sorry... localization is a string of characters >> for instance >> localization = >> paste("http://www.resul

[Rd] use scan("http://www.example.com/file.htm") with an hidden-fake IP adress

2011-03-28 Thread Arthur Charpentier
Dear users, I am currently using scan(,what="character") to read - automacally - some html pages, I was wondering if there was an option to "hide" my IP-adress, or to use a "fake" one ? I would like to chek if the website is using my IP-adress to change the content of the page (it is the price of a

[Rd] matrix not positive definite (while it should be)

2011-05-05 Thread Arthur Charpentier
I do have some trouble with matrices. I want to build up a covariance matrix with a hierarchical structure). For instance, in dimension n=10, I have two subgroups (called REGION). NR=2; n=10 CORRELATION=matrix(c(0.4,-0.25, -0.25,0.3),NR,NR) REGION=sample(1:NR,size=n,replace=TR

Re: [Rd] matrix not positive definite (while it should be)

2011-05-06 Thread Arthur Charpentier
ile theoretically it should be 0 (if it was [1] 2.109071e-17 I guess it would work, the problem is the minus sign) Arthur 2011/5/6 Petr Savicky > On Thu, May 05, 2011 at 02:31:59PM -0400, Arthur Charpentier wrote: > > I do have some trouble with matrices. I want to build up a covariance > ma

Re: [Rd] matrix not positive definite (while it should be)

2011-05-06 Thread Arthur Charpentier
GMA)$values) [1] 0.6 2011/5/6 Arthur Charpentier > thanks for the tip > actually, I know that the covariance matrix has rank 2, but it should still > be definite positive (not strictly positive, but positive) > my problem is that Cholesky needs a positive matrix... > my concern is tha