computeXdate_date computeXdate_hour computeXdate_jday computeXdate_mday computeXdate_minute computeXdate_month computeXdate_quarter computeXdate_second computeXdate_tday computeXdate_time computeXdate_week computeXdate_wkday Be careful about the input format of the numeric values in your data. It is possible to specify values which are outside the of valid range. Those failures are called Domain Errors.
For example:
Function |
|
Output
|
|
| ** | A negative number to a noninteger power. |
| / | |
| A divisor of 0. | |
| computeArsin | An argument whose absolute value exceeds 1. |
| computeExp | |
| An argument that produces a result too large to be represented on the computer. | |
| computeLg10 | A negative or 0 argument. |
| computeLn | |
| A negative or 0 argument. | |
| computeMod | A divisor of 0. |
data(fromXPSS)
xpssCompute(x=fromXPSS, variables="V7_2",fun="computeValue")
xpssCompute(x=fromXPSS, variables=c("V5","V7_2"),fun="computeMean", na.rm=T)
Run the code above in your browser using DataLab