data.table (version 1.0)

as.data.frame.data.table: ~~function to do ... ~~

Description

~~ A concise (1-5 lines) description of what the function does. ~~

Usage

as.data.frame.data.table(x, ...)

Arguments

x
~~Describe x here~~
...
~~Describe ... here~~

Value

  • ~Describe the value returned If it is a LIST, use
  • comp1Description of 'comp1'
  • comp2Description of 'comp2'
  • ...

Warning

....

Details

~~ If necessary, more details than the __description__ above ~~

References

~put references to the literature/web site here ~

See Also

~~objects to See Also as ~~fun~~, ~~~

Examples

Run this code
##---- 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, ...)
{
    attr(x,"row.names") = as.character(1:nrow(x))
    # The row names alone may create a data.frame 10 times larger in memory than the data.table.
    # This is why data.tables can be 10 times faster, and can hold 10 times as many rows in the same amount of memory.
    # row names cannot be dropped from the data.frame class itself because the White Book defines them. See Prof Ripley's r-devel response 12 Dec 05.
    class(x) = "data.frame"
    x
  }

Run the code above in your browser using DataLab