lenses icon indicating copy to clipboard operation
lenses copied to clipboard

Assignment into empty filter_l

Open arbelt opened this issue 5 years ago • 0 comments

Assigning to a composed filter_l + index_l generates an error. Seems that assigning into an empty subset and assigning into an empty dataframe are handled differently, e.g.,

# for empty index i
d[i,cols] <- NA  # works
d[i,][,cols] <- NA  # doesn't work

Submitted a simple PR — #32 — to perform the assignment only if the set of rows is non-empty.

arbelt avatar Jun 20 '19 17:06 arbelt