NAME

PDL::Factor - PDL subclass for keeping categorical data

VERSION

version 0.0053

SYNOPSIS

    use PDL::Factor ();

    # extract levels from input
    my $blood_types = PDL::Factor->new( [ qw(B A AB A B A B O AB O) ] );

    # explicitly specify levels
    my $blood_types2 = PDL::Factor->new( [ qw(B A AB A B A B O AB O) ],
                                         levels => [ qw(A B AB O) ] );

METHODS

new( $data, %opt )

levels => $array_ref

glue

    $c = $a->glue($dim, $b, ...);

Glue two or more PDLs together along an arbitrary dimension. For now it only supports 1D PDL::Factor piddles, and $dim has to be 0.

SEE ALSO

PDL

AUTHORS

  • Zakariyya Mughal <zmughal@cpan.org>

  • Stephan Loyd <sloyd@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014, 2019 by Zakariyya Mughal, Stephan Loyd.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.