Data::Frame::Partial::Eval - Partial class for data frame's eval method
version 0.006002
$df->eval_tidy($x);
Do not use this module in your code. This is only internally used by Data::Frame.
The eval_tidy method is similar to R's data frame tidy evaluation.
eval_tidy
eval_tidy($x)
This method is similar to R's data frame tidy evaluation.
Depending on $x,
$x
$x is a reference but not an Eval::Quosure object
Return $x.
$x is a column name of the data frame
Return the column.
For other $x,
Coerce $x to an an Eval::Quosure object, add columns of the data frame into the quosure object's captured variables, and evaluate the quosure object. For example,
# $df has a column named "foo" $df->eval_tidy('$foo + 1'); # above is equivalent to below $df->at('foo') + 1;
Data::Frame, Eval::Quosure
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.