givemat: Variable assignment from a character string

Description Usage Arguments Details Value Author(s)

View source: R/menucollection.r

Description

Assign the value to a variable from the a command string.

Usage

1
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

Details

This function is used to pass whatever variable to a function through a graphical menu compiled by the user. 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]. The required values must be already defined in the calling environment (i.e. the Global).

Value

The required assignment of variable is done in environment where givemat is called.

Author(s)

Gianmarco Polotti


polgia0/Menucollection documentation built on May 20, 2019, 10 a.m.