Displaying 1 result from an estimated 1 matches for "hggi".
Did you mean:
hggh
2011 Jul 12
1
Creating a zero matrix when a condition doesn´t get it
Hi all,
I first create a matrix/data frame called "d2" if another matrix
accomplishes some restrictions "dacc2"
da2<-da1[colSums(dacc2)>9,]
da2<-da2[(da2[,13]=24),]
write.csv(da2, file =paste('hggi', i,'.csv',sep = ''))
The thing is if finally da2 cannot get/passs the filters, it cannot writte a
csv because there is no any true condition.
How can I create anyway a csv with zeros of one row and "n" columns (being n
the number of columns of da2?
I need a loop?...