我想做的下一件事是创建一个新的df,其中包含列telephone1包含数据的所有帐户。我尝试的是:> df_active_accounts <- sqldf('Select * from df where statecode = 0')
> telephone1 <- sqldf('Select telephone1 from df_active_accounts where telephone1 i
SAS程序中的许多语句都是用proc sql编写的,所以为了便于编程,我在R中使用sqldf复制这些语句。所有sql代码在sqldf中的工作方式与在SAS中相同,除了下面的语句:proc sql;select max(ctf) as ctf,, city, state, site_ct, zip, site_key group by 9,10,11,12,14,15")
在SAS中,它返回一个有1
使用64位R,data.frame df有3200万行,大小约为4GB;df2相对较小。除了df和df2之外,我已经从全局环境中删除了所有变量。错误出现在下面的sqldf代码行之后。是否有人可以帮助我在data.table包中使用与此代码相当的代码,以查看是否使用该代码解决堆栈溢出: 'select A.*,
case when A.cost isnull then B.meancost else A.cost end imputedc