Displaying 1 result from an estimated 1 matches for "tp26163589p26163589".
2009 Nov 03
2
Re place only first NA in column
...ions.
a<-matrix(nrow=1000,ncol=1)
while(sum(is.na(a)>0))
{
z<-matrix(rbinom(832, 1, prob = 0.048), nrow = 32)
rs<-rowSums(z)
nz<-length(rs[rs==0])
a[,]=nz
}
Thank you for your help!
Mike
--
View this message in context: http://old.nabble.com/Replace-only-first-NA-in-column-tp26163589p26163589.html
Sent from the R help mailing list archive at Nabble.com.