我有兩個數據幀,每個數據幀有120萬行。嘗試合併兩個數據幀時出現「無法分配向量大小」錯誤
我嘗試將它們與dummy <- merge(df1, df2)
合併。兩個數據框都沒有共同的列,但兩個數據框的行都按我想要的順序排列。
我希望他們合併並排側,但是當我運行合併功能,我得到這個錯誤:
Error: cannot allocate vector of size 5905.6 Gb
In addition: Warning messages:
1: In rep.int(rep.int(seq_len(nx), rep.int(rep.fac, nx)), orep) :
Reached total allocation of 8107Mb: see help(memory.size)
2: In rep.int(rep.int(seq_len(nx), rep.int(rep.fac, nx)), orep) :
Reached total allocation of 8107Mb: see help(memory.size)
3: In rep.int(rep.int(seq_len(nx), rep.int(rep.fac, nx)), orep) :
Reached total allocation of 8107Mb: see help(memory.size)
4: In rep.int(rep.int(seq_len(nx), rep.int(rep.fac, nx)), orep) :
Reached total allocation of 8107Mb: see help(memory.size)
什麼是'object.size(DF1)'和'object.size(DF2)'' – MichaelChirico
15113968 bytes'和'215909312個字節'@MichaelChirico – Username
你想要做什麼樣的合併? http://stackoverflow.com/questions/1299871/how-to-join-merge-data-frames-inner-outer-left-right – MichaelChirico