Skip to content

Assigning NA_real_ to multiple rowsΒ #2959

@MichaelChirico

Description

@MichaelChirico

It appears recycling is failing for NA_real_ here:

DT = data.table(a = c(NA, NA))
DT[ , a := NA_real_]

However this works:

DT = data.table(a = c(NA, NA))
DT[ , a := rep(NA_real_, 2L)]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions