def_sym {caracas}R Documentation

Define caracas symbols in global environment

Description

Define caracas symbols in global environment

Usage

def_sym(..., charvec = NULL, warn = FALSE, env = parent.frame())

Arguments

...

Names for new symbols, also supports non-standard evaluation

charvec

Take each element in this character vector and define as caracas symbols

warn

Warn if existing variable names are overwritten

env

Environment to assign variable in

Value

Names of declared variables (invisibly)

See Also

symbol(), as_sym()

Examples

if (has_sympy()) {
  ls()
  def_sym(n1, n2, n3)
  ls()
  def_sym("x1", "x2", "x3")
  ls()
  def_sym("x1", "x2", "x3", warn = TRUE)
  ls()
  def_sym(i, j, charvec = c("x", "y"))
  ls()
}


[Package caracas version 1.1.0 Index]