[R] Package RPostgreSQL : Problem with dbWriteTable

2010-05-07 Thread PALMIER Patrick - CETE NP/INFRA/TRF
Hello, I have a probem with dbWriteTable method of package RPostrgreSQL The table is well added in the database but R doesn't succeed in inserting rows But If I send the "COPY FROM" as an sql query in R, the rows are then well added I think it is a problem with the temp file create by dbWriteT

[R] Package RPostgreSQL : Problem with dbWriteTable

2010-05-11 Thread PALMIER Patrick - CETE NP/INFRA/TRF
Hello, I have a probem with dbWriteTable method of package RPostrgreSQL The table is well added in the database but R doesn't succeed in inserting rows But If I send the "COPY FROM" as an sql query in R, the rows are then well added I think it is a problem with the temp file create by dbWrit

[R] Matrix balancing on margins

2008-09-21 Thread PALMIER Patrick - CETE NP/INFRA/TRF
Hello, Is there any package in R for balancing matrix I want to estimate a matrix with * a initial matrix (1 everywhere for example) * Row margin * Col margin * distance class vector (each cell of the matrix belong to a distance class) and I want that the distance class

[R] matrix balancing on margins

2008-09-22 Thread PALMIER Patrick - CETE NP/INFRA/TRF
Hello, Is there any package in R for balancing matrix I want to estimate a matrix with * a initial matrix (1 everywhere for example) * Row margin * Col margin * distance class vector (each cell of the matrix belong to a distance class) and I want that the distance class rep

[R] problem with plot style (pch) with lattice in legend

2008-11-03 Thread PALMIER Patrick - CETE NP/INFRA/TRF
Hello, I'm doing xyplot(s) with groups using the following code and "lattice" package xyplot(V8 ~ V7 | cut(V17,c(0,10,20,100),include.lowest=T )+cut(V18,c(0,10,20,100),include.lowest=T ), pch=20,groups=as.array(c("HPM","HPS","HCJ","HCN")[V19]),data=A1,auto.key=list(space="bottom",pch=20,po