##---- 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 (keep.rownames) return(data.table(rn=rownames(x), x, keep.rownames=FALSE))
attr(x,"row.names") = NULL
class(x) = "data.table"
x
}
Run the code above in your browser using DataLab