[R] error with sqldf v0-1.4

Gabor Grothendieck ggrothendieck at gmail.com
Sun Dec 14 18:46:21 CET 2008


I can't reproduce this.

Make sure you are using the same version of sqldf as shown
below, try it in a fresh session and if you still get an error provide the
data in reproducible form using dput, i.e. dput(kdv)

> kdv <- data.frame(
+  dpss = c(0.117, 0.144, 0.164, 0.166, 0.165),
+  npdp = c(0.1264, 0.0325, 0.0109, 0.0033, 0.0055),
+  logk = c(1.12, 1.29, 1.41, 1.41, 1.42))
> library(sqldf)
Loading required package: DBI
Loading required package: RSQLite
> sqldf("select * from kdv")
   dpss   npdp logk
1 0.117 0.1264 1.12
2 0.144 0.0325 1.29
3 0.164 0.0109 1.41
4 0.166 0.0033 1.41
5 0.165 0.0055 1.42

> sqldf("select * from kdv")
   dpss   npdp logk
1 0.117 0.1264 1.12
2 0.144 0.0325 1.29
3 0.164 0.0109 1.41
4 0.166 0.0033 1.41
5 0.165 0.0055 1.42
> R.version.string # Vista
[1] "R version 2.8.0 Patched (2008-11-10 r46884)"
> packageDescription("sqldf")$Version
[1] "0-1.4"

On Sun, Dec 14, 2008 at 11:04 AM, martin trobec
<trobecgeologygroup at shaw.ca> wrote:
>
> I'm getting an error message when using the new version of sqldf,
>
>> library(sqldf)
>> str(kdv)
> 'data.frame':   71 obs. of  3 variables:
>  $ dpss: num  0.117 0.144 0.164 0.166 0.165 ...
>  $ npdp: num  0.1264 0.0325 0.0109 0.0033 0.0055 ...
>  $ logk: num  1.12 1.29 1.41 1.41 1.42 ...
>> test=sqldf("select * from kdv")
> Error in get("fun", env = this, inherits = TRUE)(this, ...) :
>  could not find function "combine"
>
> Anyone know how to fix this?
>
> Thank you
> Martin
> --
> View this message in context: http://www.nabble.com/error-with-sqldf-v0-1.4-tp21001041p21001041.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at 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.
>



More information about the R-help mailing list