Initializing help system before first use

# Rgetreal

Purpose
Get the real value of an R expression.
Synopsis
`function Rgetreal(cmd:string):real`
Argument

cmd | Statements to evaluate

Return value
The result of the evaluation as a real.
Example
The following example retrieves the mean of the speed/dist ratios for the cars dataset into the variable realvar:

     realvar:=Rgetreal('mean(cars$speed/cars$dist)')

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 a NaN value is returned. The returned value is first converted to numeric within R.
Related topics
Rgetarr, Rgetbool, Rgetint, Rgetstr
Parent Topic Procedures and functions

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.