EntropyOrg/p5-Data-Frame

subset syntax

Closed this issue · 2 comments

use localised variables like List::Utils:

subset $my_data { $SecondColName > 15 }

http://irclog.perlgeek.de/pdl/2014-07-09#i_8997055

# is equivalent to
$g = pdl q[ [1, 20], [2, 13], [3, 27]  ]; $col = $g->slice('1,'); $g->dice(X, which( $col > 15 ))
$g->whereND($g(1)>15)

This was not such a good idea because it conflicts with use strict. I chose to use a helper that sets $_ so that I can do $_->('ColumnName').

Subset syntax is supported by using the Rlike role.