Skip to content

suggestion - @chainWithRTransform  #325

Description

@Lincoln-Hannah

A macro similar to @chain but treats any line that isn't another macro as being within an @rtransform @astable block. So what would currently be written as:

@chain DataFrame( A = 1:10 ) begin

    @rtransform @astable begin
        :B =  mod(:A,3)
        :E =  :B * 2
    end

    @rsubset :B == 1
    
    @rtransform @astable begin
        :F =  :B * 2
        :G =  :F + 1
    end

    @orderby :A

    @rtransform   :H =  :G * 2

end

Could be written as:

  @chainWithrTransform DataFrame( A = 1:10 ) begin
        
        :B =  mod( :A, 3 )
        :E =  :B * 2
        
        @rsubset :B == 1
    
        :F =  :B * 2
        :G =  :F + 1
    
        @orderby :A
    
        :H =  :G * 2
  
  end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions