##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function(x, keep.rownames=FALSE)
{
if (is.null(x))
return(as.data.table(list()))
UseMethod("as.data.table")
}
Run the code above in your browser using DataLab