1
這裏是我的兩個數據幀,都有哪些是70492行相同數量的,我想將它們合併在一起,合併兩個大型數據集一起
這不會合並我的數據幀一起
final <- merge(DF1,DF2)
我得到的錯誤是
Error: cannot allocate vector of size 2.1 Gb
In addition: Warning messages:
1: In merge.data.frame(as.data.frame(x), as.data.frame(y), ...) :
Reached total allocation of 1535Mb: see help(memory.size)
樣本數據:
> Df1
DaysInHospital
1 0.7083160
2 0.7855017
3 1.4028831
4 0.5711540
5 0.7084526
6 0.7035213
> DF2
MemberID ClaimsTruncated
1 20820036 0
2 14625274 1
3 99227820 0
4 74486714 0
5 92341995 0
6 7127539 0
如果他們有相同數量的行是它真的是你想要做的合併。也許'cbind(df1,df2)'? – digitalmaps 2012-03-08 02:47:07
如果不是這可能是一個sql處理包的工作。 – 2012-03-08 02:49:58
這個現場,謝謝 – 2012-03-08 02:50:19