Skip to content
Prev 325765 / 398503 Next

Nulls being coerced : Bug or design?

Well, feel free to make up any semantics that you like for a language
you write, but R already has its own and tells you what to expect:
NULL can be indexed (see Extract) in just about any syntactically
legal way: whether is makes sense or not, the result is always NULL.
Objects with value NULL can be changed by replacement operators and
will be coerced to the type of the right-hand side.

Cheers,
Bert

On Fri, Jun 21, 2013 at 1:21 PM, Saptarshi Guha
<saptarshi.guha at gmail.com> wrote: