Data::Frame::Indexer - Function interface for indexer
version 0.0050_01
A basic feature needed in a data frame library is the ability of subsetting a data frame by either numeric indices or string labels of columns and rows. Because of the ambiguity of number and string in Perl, there needs a way to allow user to explicitly specify whether their indexer is by numeric indices or string labels. This modules provides functions that serves this purpose.
indexer_s($x)
Returns either undef or an indexer object, by trying below rules,
undef
If called with undef, returns undef.
If the argument is an indexer object, just returns it.
If the argument is a PDL of numeric types, create an indexer object
of Data::Frame::Indexer::Integer
Fallbacks to create an indexer object of
Data::Frame::Indexer::Label.
indexer_i($x)
Similar to indexer_s but would fallback to an indexer object of Data::Frame::Indexer::Integer.
indexer_s
Zakariyya Mughal <zmughal@cpan.org>
Stephan Loyd <sloyd@cpan.org>
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.
To install Alt::Data::Frame::ButMore, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Alt::Data::Frame::ButMore
CPAN shell
perl -MCPAN -e shell install Alt::Data::Frame::ButMore
For more information on module installation, please visit the detailed CPAN module installation guide.