Skip to content

Assignments with selection? e.g. x[x > 10] <- 10 #15

@edwindj

Description

@edwindj

What to do with assignments with selections?

library(dcmodify)
m <- modifier(x[x > 10] <- 10)

This works, but should it be translated into

m <- modifier(if (x > 10) x <- 10)

?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions