Skip to content

Add ability to tabulate: like in Matrix #13

Open
@philippeback

Description

@philippeback
ut := Matrix rows: rows columns: columns tabulate: [ :r :c |
    | v |
    c = 2 ifTrue: [ v := r \\ 10. v = 0 ifTrue: [ v := 10 ]].
    c = 1 ifTrue: [ v := r // 10.  (r \\ 10) = 0 ifTrue: [ v := v - 1] . v:= v + 1].
    c = 3 ifTrue: [ v := 0 ].
    c = 4 ifTrue: [ v := 0 ].

    v ].

so, DataFrame rows: 100 columns: 3 tabulate: [:rowIndex :colIndex | ... ]
Code could be better, but you get the point

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions