Data::Frame::Util - Utility functions
version 0.006002
This module provides some utility functions used by the Data::Frame project.
my $df = dataframe(...);
Creates a Data::Frame object.
my $logical = factor(...);
Creates a PDL::Factor object.
my $logical = logical(...);
Creates a PDL::Logical object.
my $bad = BAD($n);
A convenient function for generating all-BAD piddles of the given length.
This is an alias of the BAD function.
BAD
my $rslt_piddle = ifelse($test, $yes, $no)
This function tries to do the same as R's ifelse function. That is, it returns a piddle of the same length as $test, and is filled with elements selected from $yes or $no depending on whether the corresponding element in $test is true or false.
ifelse
$test
$yes
$no
$test, $yes, $no should ideally be piddles or cocere-able to piddles.
my $bool = is_discrete(ColumnLike $x);
Returns true if $x is discrete, that is, an object of below types,
$x
PDL::Factor
PDL::SV
Zakariyya Mughal <zmughal@cpan.org>
Stephan Loyd <sloyd@cpan.org>
This 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.
To install Data::Frame, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Frame
CPAN shell
perl -MCPAN -e shell install Data::Frame
For more information on module installation, please visit the detailed CPAN module installation guide.