Rgetint
Rgetint |
Purpose
Synopsis
function Rgetint(cmd:string):integer
Argument
cmd
|
Statements to evaluate
|
Return value
The result of the evaluation as an integer.
Example
The following example retrieves the length of the R entity
vec into variable
intvar:
intvar:=Rgetint('length(vec)')
Further information
If
cmd contains more than one statement, the returned value is the result of the last one. If the results is
NA, then the R
NA_Integer value (-2
31) is returned. The returned value is first converted to
integer within R.
Related topics