Skip to content

Request @rsubset_rtransform #371

Open
@Lincoln-Hannah

Description

Apply an @rtransform block to a restricted set of rows. Fill other rows with existing value or missing for new columns.

@chain begin

    DataFrame( A = 1:4, B=[1,1,2,2] )

    @rsubset_rtransform (:B == 1) begin

        :A = 10
        :C = 20

    end

end


#result
DataFrame( A=[10,10,3,4], B=[1,1,2,2], C=[20,20,missing,missing])

Activity

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

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