Skip to content

Coercing integer64 vector to data.frame.

Usage

# S3 method for class 'integer64'
as.data.frame(x, ...)

Arguments

x

an integer64 vector

...

passed to NextMethod as.data.frame() after removing the 'integer64' class attribute

Value

a one-column data.frame containing an integer64 vector

Details

'as.data.frame.integer64' is rather not intended to be called directly, but it is required to allow integer64 as data.frame columns.

Note

This is currently very slow – any ideas for improvement?

Examples

  as.data.frame.integer64(as.integer64(1:12))
#>     x
#> 1   1
#> 2   2
#> 3   3
#> 4   4
#> 5   5
#> 6   6
#> 7   7
#> 8   8
#> 9   9
#> 10 10
#> 11 11
#> 12 12
  data.frame(a=1:12, b=as.integer64(1:12))
#>     a  b
#> 1   1  1
#> 2   2  2
#> 3   3  3
#> 4   4  4
#> 5   5  5
#> 6   6  6
#> 7   7  7
#> 8   8  8
#> 9   9  9
#> 10 10 10
#> 11 11 11
#> 12 12 12