[R] Cause of error assigning NULL to element of a vector

Ramnik Bansal ramnik.bansal at gmail.com
Wed May 24 20:30:49 CEST 2017


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]]



More information about the R-help mailing list