Skip to content

c, cbind and rbind more consistent to base R #252

@hcirellu

Description

@hcirellu

It would be nice to have c.integer64, cbind.integer64, and rbind.integer64 more consistent with base R.

c(A=as.integer64(1L), B=list(aa=1, bb=2:1))
# Error in UseMethod("as.integer64") : 
#  no applicable method for 'as.integer64' applied to an object of class "list"

vs.

c(A=1L, B=list(aa=1, bb=2:1))
# $A
# [1] 1
# 
# $B.aa
# [1] 1
# 
# $B.bb
# [1] 2 1

or

cbind(A=as.integer64(1L), B=matrix(1:6, 2))
# integer64
#      A B
# [1,] 1 1
# [2,] 1 2
# [3,] 1 3
# [4,] 1 4

vs.

(A=1L, B=matrix(1:4, 2))
#      A    
# [1,] 1 1 3
# [2,] 1 2 4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions