[R] Nulls being coerced : Bug or design?
gunter.berton at gene.com
Fri Jun 21 22:53:25 CEST 2013
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.
On Fri, Jun 21, 2013 at 1:21 PM, Saptarshi Guha
<saptarshi.guha at gmail.com> wrote:
> Consider the following transcript
>  10
>  NA NA NA NA NA NA NA NA NA 10
> Wouldn't one expect that x remain NULL despite the further additions (i.e
> the x$date, x) etc? Is coercing appropriate here?
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
Genentech Nonclinical Biostatistics
Internal Contact Info:
More information about the R-help