Variables are detected as a character followed by a number of either: character, number or underscore.
as_sym(x, declare_symbols = TRUE)
R object to convert to a symbol
declare detected symbols automatically
Default is to declare used variables. Alternatively, the user
must declare them first, e.g. by symbol()
.
Note that matrices can be defined by specifying a Python matrix, see below in examples.