The list elements (or columns of data.frame
/data.table
) should be all atomic
. If list elements are of unequal lengths, the value provided in fill
will be used so that the resulting list always has all elements of identical lengths. The class of input object is also preserved in the transposed result.
The ignore.empty
argument can be used to skip or include length-0 elements.
This is particularly useful in tasks that require splitting a character column and assigning each part to a separate column. This operation is quite common enough that a function tstrsplit
is exported.
factor
columns are converted to character
type. Attributes are not preserved at the moment. This may change in the future.