[R] mark values as NA in matrix
Petr Pikal
petr.pikal at precheza.cz
Thu Sep 22 10:42:43 CEST 2005
Hi
there is not much to evaluate what you actually want
mymatrix[1,2] <- NA
changes respective value in row1 and col2 to NA
or
which(is.na(mymatrix), arr.ind=T)
gives you positions of NA in mymatrix.
HTH
Petr
On 21 Sep 2005 at 20:07, MK wrote:
>
>
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
Petr Pikal
petr.pikal at precheza.cz
More information about the R-help
mailing list