NAME
Data::Frame::Partial::Eval - Partial class for data frame's eval method
VERSION
version 0.006002
SYNOPSIS
$df->eval_tidy($x);
DESCRIPTION
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.
METHODS
eval_tidy
eval_tidy($x)
This method is similar to R's data frame tidy evaluation.
Depending on $x
,
$x
is a reference but not an Eval::Quosure objectReturn
$x
.$x
is a column name of the data frameReturn 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;
SEE ALSO
AUTHORS
Zakariyya Mughal <zmughal@cpan.org>
Stephan Loyd <sloyd@cpan.org>
COPYRIGHT AND LICENSE
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.