![]() |
![]()
| ![]() |
![]()
NAMEData::Frame::Util - Utility functions VERSIONversion 0.006004 DESCRIPTIONThis module provides some utility functions used by the Data::Frame project. FUNCTIONSdataframemy $df = dataframe(...); Creates a Data::Frame object. factormy $logical = factor(...); Creates a PDL::Factor object. logicalmy $logical = logical(...); Creates a PDL::Logical object. BADmy $bad = BAD($n); A convenient function for generating all-BAD piddles of the given length. NAThis is an alias of the "BAD" function. ifelsemy $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. $test, $yes, $no should ideally be piddles or coerce-able to piddles. is_discretemy $bool = is_discrete(ColumnLike $x); Returns true if $x is discrete, that is, an object of below types,
guess_and_convert_to_pdlAUTHORS
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.
|