Skip to content

Assigning NA_real_ to multiple rows #2959

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)]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions