evalparsetext: Function for evaluate a string

View source: R/evalparsetext.R

evalparsetextR Documentation

Function for evaluate a string

Description

Function that takes your strings and evaluate them, it is useful to name variables within a for loop. The sky is the limit for this function.

Usage

evalparsetext(suastring)

Arguments

suastring

Simple character object or a vector of strings (characters).

Value

The output of the function evaluated in suatring vector.

Note

It is necessary to add <<- instead of <- when using evalparsetext function to add information to a object (see example).

Examples

rm(outp)
evalparsetext(c("outp <<- 1"))
print(outp)

Matheusbp/GemirTools documentation built on Jan. 31, 2025, 5:48 p.m.