search for: presyabs

Displaying 1 result from an estimated 1 matches for "presyabs".

2013 Apr 02
1
creating a loop if to create a column of 0 and 1.
...- GB3ACPOD[[9]]<- GB3CCPOD[[10]]<- GB3DCPOD[[11]]<- GB4ACPOD[[12]]<- GB4CCPOD[[13]]<- GB4DCPOD[[14]]<- GB5ACPOD[[15]]<- GB5BCPOD[[16]]<- GB5CCPOD[[17]]<- GB5D Each each file you can find a txt document that contains the columns: file, chuckend, Nfiltered, Nall, MinsOn and Presyabs. What I want to do is to create a loop for all the CPODs. If the row of the column Nfiltered is 0 then the row of the column Presyabs must be 0 if it is different than 0 then it must be 1. I create this loop without success#Creating the loop (0-1 presence, absence) for(i in 1:length(CPOD[[1]]$Pre...