givemat: Variable assignment from a character string
Description
Assign the value to a variable from the command in a string. This function is used to
pass whatever variable to a function through a graphical menu compiled by the user at runtime.
Usage
givemat(name, nl = NULL, ndim = NULL)
Arguments
name
character string with the name of the variable to be assigned
nl
numeric integer with the length in case of vector
ndim
numeric vector with c(nr,nc) the number of rows and column in case of matrix
Value
The required assignment of variable is done in environment where givemat is called.
Details
The character string could be the name of the variable, i.e. A or a more complex syntax
i.e. A[1:2,] or A[c(1:3),4] Of course, the required values must be already in the .Global environment