Closed UweBlock closed 5 years ago
The first issue (error) has been fixed for a while, the second issue seems to be due to setting the key to an int matching the row number, and keys.as.row.names
param of pander.data.table
defaults to TRUE
and then pander
removes the obvious rownames. So this seems to be intentional, although I agree it's confusing in some edge cases like this one. Documenting this at #271
Sorted attribute set to numeric variable throws error
This was asked on SO (Error when using pander on a data.table created with data.table::dcast).
Workarounds are
which all return
Sorted attribute set to integer variable removes column
However, if the
time
column is defined as integer (and not as numeric as above),pander()
no longer throws an error but thetime
column is excluded from the result:Again, one of the three workarounds is required to include the
time
column.