Rgetbool
Rgetbool |
Purpose
Synopsis
function Rgetbool(cmd:string):boolean
Argument
cmd
|
Statements to evaluate
|
Return value
The result of the evaluation as a boolean.
Example
The following example checks if the R entity
vec is atomic and sets the boolean variable
boolvar accordingly:
boolvar:=Rgetbool('is.atomic(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
false is returned. The returned value is first converted to
logical within R.
Related topics