Data::Frame::Partial::Eval - Partial class for data frame's eval method
version 0.0053
$df->eval_tidy($x);
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 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.