|
NAMEPDL::Factor - PDL subclass for keeping categorical data VERSIONversion 0.006004 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) ] );
METHODSnew( $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 ALSOPDL AUTHORS
COPYRIGHT AND LICENSEThis software is copyright (c) 2014, 2019-2022 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.
|