[R-SIG-Finance] Potential bug in quantstrat in how it handles "F" symbol

rex rex at nosyntax.net
Thu Mar 1 08:53:43 CET 2012

Sergey Pisarenko <drseergio at gmail.com> [2012-02-29 22:29]:
>The issue here is that get('F') will return FALSE because F is defined
>as FALSE in R. This will obviously cause a failure down the road where
>market data is read and manipulated.

Hello Sergey,

Easy fix:

> if (F == FALSE) print('F == FALSE')
[1] "F == FALSE"
> F <- 'F'
> if (F == FALSE) print('F == FALSE')


More information about the R-SIG-Finance mailing list