c(.,.,.) -> (.,.,.) – e.g. for making AFL lists from R vectors
add_arg(op(...),...) -> op(...,...)
as(X,Y) -> X as Y
from(A,X) -> A.x
afl("afl-string") -> afl-string – e.g. for interpolating schemas
R(R-expression) -> afl-expression – e.g. map R expression to AFL expression Meanwhile, !!aop-style references to ArrayOpR objects are converted to AFL, but their references are tracked and included in the returned value
R/afl_utils.R
deparse_to_afl.Rd
Convert an expression in AFL-like syntax to an AFL string; here AFL-like means an expression a modification of AFL that is compatible with R syntax, in particular not containing whitespace operations like 'X as L' or 'X is null'. This method is independent of the true R-syntax to AFL-syntax conversion methods scidb::filter and scidb::assign_expressions. In cases where the AFL syntax cannot be directly written as valid R expression syntax, defines/reinterprets the following calls:
c(.,.,.) -> (.,.,.) – e.g. for making AFL lists from R vectors
add_arg(op(...),...) -> op(...,...)
as(X,Y) -> X as Y
from(A,X) -> A.x
afl("afl-string") -> afl-string – e.g. for interpolating schemas
R(R-expression) -> afl-expression – e.g. map R expression to AFL expression Meanwhile, !!aop-style references to ArrayOpR objects are converted to AFL, but their references are tracked and included in the returned value
deparse_to_afl(...)
a list with elements 'afl' and 'arrays'