merge - Add observations found in a data frame to a much larger data frame in R -



merge - Add observations found in a data frame to a much larger data frame in R -

i need update big info frame (a) several times day smaller info frame (b). both info frames share same number of variables , same construction of column classes. difference number of observations , observations themselves. i've spent hours on site , others trying figure out solution. got merge() work little info frames (313 observations of 96 variables each).

merge(a,b,all=t)

however, when seek run same operation on larger info frame (~1.5 1000000 observations of 96 variables),

error: cannot allocate vector of size 1.6 gb.

i have ~12 gb of free physical memory according windows task manager. starting gc() function create sure have amount of memory possible, still won't work. there function add together observations existing info frame? tried few others, result wasn't info frame same structure.

if can't tell already, i'm new r (and forum). started larn stata , convinced me move r before got deep. in stata, easy operation

clear

use a

append using b

that got job done without issues in stata , quick (less few seconds).

can please help? thanks!

see reply question: r: how rbind 2 huge data-frames without running out of memory

if info in sqlite database, can utilize sqldf package. otherwise, should using data.table package.

r merge data.frame append

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -