我遇到了一个问题,运行sqldf
包时会出现错误消息。我只是加载
install.packages("sqldf")
install.packages("RSQLite")
install.packages("tcltk2")
library("sqldf")
library("RSQLite")
library("tcltk2")
final <-sqldf("select a.age,
a.height
from a
inner join b
on
a.id = b.id
")
错误:无法找到功能&#34; sqldf&#34;
sessionInfo()
R version 3.2.0 (2015-04-16)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] tcltk stats graphics grDevices utils datasets methods base
other attached packages:
[1] tcltk2_1.2-11
loaded via a namespace (and not attached):
[1] tools_3.2.0
另外,我的R和Rstudio有最新版本。我有Windows 7。