powered by
Clean variable name(s) to create syntactically valid, unique names for use in R and Julia.
clean_name(new, protected = NULL)
Vector of cleaned names
Vector of names to transform to valid names
Optional vector of protected names, e.g., existing names in model
sfm <- stockflow("predator_prey") # As the variable name "predator" is already taken, clean_name() will create # a unique name clean_name("predator", as.data.frame(sfm)[["name"]])
Run the code above in your browser using DataLab