search for: myvect

Displaying 2 results from an estimated 2 matches for "myvect".

Did you mean: myvec
2009 Dec 23
1
removing rows with NAs in anywere
Dear all, I have a data.frame with some NAs that can happens anywere, and I would like to keep only rows without NAs. Thanks in advance for your help, and Merry Xmas. myvect<-runif(100) myvect[sample(1:100)[1:5]]<-NA myDF<-data.frame(matrix(myvect,ncol=5)) myDF miltinho [[alternative HTML version deleted]]
2009 Dec 11
3
how to creat a matrix
Dear R family I am attempting to create a matrix. e.g., 0 0 0 0 1 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 How could I write a R program? Later I want to extend it to a N by N case. Thanks in advance best Moohwan