[datatable-help] Why does cbind drop key?

Chris Neff caneff at gmail.com
Tue Nov 15 14:57:25 CET 2011


> But, := is much much better if you can.

Of course, but it is like 12 columns I am adding on programatically,
and i don't want to make a new line for each. Once := supports
multiple arguments I'll use it for this purpose.

>
>
>> When I do cbind(DT, DF), where DT has a key, the result loses the key.
>>  cbind can't change ordering though, so why does that happen?  I can
>> understand if you are trying to combine two keyed DT's that the result
>> is ambiguous, but it isn't in this case.
>> _______________________________________________
>> datatable-help mailing list
>> datatable-help at lists.r-forge.r-project.org
>> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
>>
>
>
>


More information about the datatable-help mailing list