Displaying 2 results from an estimated 2 matches for "settruelength".
2015 Jun 08
4
columna de un data.table puede ser data.frame?
...Col)))
Es posible hacer lo que digo? o debo hacer una transformación del
data.frame a data.table explícitamente. Esto también lo he probado con el
código:
# Conversión de data.frame a data.table
setattr(PesosParam, "class", c("data.table", "data.frame"))
data.table:::settruelength(PesosParam, 0L)
invisible(alloc.col(PesosParam))
pero no encuentra settruelength
Gracias
Un saludo
MªLuz Morales
[[alternative HTML version deleted]]
2005 Sep 04
1
A memory management question
Can someone explain the use of SETLENGTH() and SETTRUELENGTH()?
I would like to allocate a vector and reserve some space at the end,
so that it appears shorter than the allocated size. So that I can
more efficiently append to the vector, without requiring a new copy
every time. So I'd like to use SETLENGTH() with a shorter apparent
length, and bump thi...