Open
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])
Metadata
Assignees
Labels
No labels
Activity