Perhaps it is worth pointing out (in case the OP thinks this is SQL) that the
special value NA is used for "missing" in R.
y[1] <- NA
works just fine.
--
Sent from my phone. Please excuse my brevity.
On May 24, 2017 11:51:41 AM PDT, Marc Schwartz wrote:
>
>> On May 24, 2017, at 1:30 PM, Ramn
> On May 24, 2017, at 1:30 PM, Ramnik Bansal wrote:
>
> What is the cause of the error below ?
>
>> y <- 1
>> y[1] <- NULL
> Error in y[1] <- NULL : replacement has length zero
>
> Thanks,
> Ramnik
Hi,
> length(NULL)
[1] 0
You are attempting to assign NULL, which is a zero length special ob
What is the cause of the error below ?
> y <- 1
> y[1] <- NULL
Error in y[1] <- NULL : replacement has length zero
Thanks,
Ramnik
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https:/
3 matches
Mail list logo