GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Data::Frame::Indexer(3) User Contributed Perl Documentation Data::Frame::Indexer(3)

Data::Frame::Indexer - Function interface for indexer

version 0.006004

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,

  • 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.

  • 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.

2024-12-20 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.