Displaying 1 result from an estimated 1 matches for "afunction2".
Did you mean:
function2
2008 May 29
7
How do you exit a function in R?
For example, based on a certain condition, I may want to exit my code early:
# Are there the same number of assets in "prices" and
"positions"?
if (nAssetPositions != nAssetPrices) {
cat("Different number of assets! \n\n")
<exit function>
}
I have searched, but not