In short, it implements a preference for is.na() and is.null() over missing() for several arguments in directional analysis functions.
Previously, one couldn't recreate the default behaviour of functions like polarFreq() while still passing an argument to, e.g., breaks.
For example, polarFreq(mydata, breaks = ...). There was nothing that could be passed to breaks to recreate the default behaviour. This made it difficult to program with polarFreq() (e.g., in openairmaps::freqMap()). There is a more complete example in #353.
This PR fixes this issue. Effort has been made to make the fix back-compatible with previous versions of {openair}.
This PR aims to fix #353.
In short, it implements a preference for
is.na()
andis.null()
overmissing()
for several arguments in directional analysis functions.Previously, one couldn't recreate the default behaviour of functions like
polarFreq()
while still passing an argument to, e.g.,breaks
.For example,
polarFreq(mydata, breaks = ...)
. There was nothing that could be passed tobreaks
to recreate the default behaviour. This made it difficult to program withpolarFreq()
(e.g., inopenairmaps::freqMap()
). There is a more complete example in #353.This PR fixes this issue. Effort has been made to make the fix back-compatible with previous versions of
{openair}
.