Dear R help,

I've attach a dbf file (and my prog. below) from which I did not succeed in geting the right values for my variable "densite"... using RODBC. It returns "10" instead of "100" , without error messages !!!

is it a bug with RODBC ?

I've succeed in geting the right values using the package foreign....

As I'm relatively new with R, I would appreciate to kown if it is my  use
of RODBC that is wrong! (but I could not find where is the mistake...)

Thank you in advance

Jean-Pierre

========================
library(RODBC)
channel<- odbcConnectDbase("D:/R_work/*.dbf")
a = sqlFetch(channel,"gb_10_100")

library(foreign)
b <- read.dbf(paste("D:/R_work/", "gb_10_100",".dbf",sep=""))

table (a$densite); table(b$densite)
______________________________________________
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, minimal, self-contained, reproducible code.

Reply via email to