Displaying 3 results from an estimated 3 matches for "duplicate1".
Did you mean:
duplicate
2010 Apr 03
3
full copy on assignment?
Here's a basic question that doesn't seem to be completely answered in
the docs, and which unfortunately I've not had time to figure out by
wading through the R source code:
In a vector (or array) element assignment such as
z[3] <- 8
is there in actuality a full rewriting of the entire vector pointed to
by z, as implied by
z <- "[<-"(z,3,value=8)
Assume
2007 Jun 21
2
segfault during cbind
...amd64-linux/vgpreload_memcheck.so)
==25398== by 0x4F2D848: ReleaseLargeFreeVectors (memory.c:760)
==25398== by 0x4F359E9: RunGenCollect (memory.c:1378)
==25398== by 0x4F38938: R_gc_internal (memory.c:2171)
==25398== by 0x4F38046: Rf_allocVector (memory.c:1961)
==25398== by 0x4EDE779: duplicate1 (duplicate.c:221)
==25398== by 0x4EDD698: Rf_duplicate (duplicate.c:115)
==25398== by 0x4E7BB34: cbind (bind.c:1258)
==25398== by 0x4E7B430: do_bind (bind.c:1113)
==25398== by 0x4F42A1B: do_internal (names.c:1116)
==25398== by 0x4EF959B: Rf_eval (eval.c:463)
==25398== by 0x4EF9F91...
2008 Oct 03
1
Memory crash
....
0x000000000041a817 in R_gc_internal (size_needed=3000) at memory.c:1317
1317 PROCESS_NODES();
(gdb) where
#0 0x000000000041a817 in R_gc_internal (size_needed=3000) at memory.c:1317
#1 0x000000000041c31c in Rf_allocVector (type=14, length=3000)
at memory.c:1968
#2 0x000000000052a647 in duplicate1 (s=0x20cb4a0) at duplicate.c:214
#3 0x00000000004e1775 in do_makelist (call=<value optimized out>,
op=<value optimized out>, args=0x1e18238, rho=<value optimized out>)
at builtin.c:645
#4 0x000000000054697a in Rf_eval (e=0x10685a0, rho=0x1c557e0) at eval.c:492
#5 0x00...