Displaying 1 result from an estimated 1 matches for "ifpair".
Did you mean:
ifair
2005 Jun 23
1
Stop Warnings for Invalid Factor Level, NAs generated?
...abdata
> #dpdata <- labdata[which(labdata[["LABNUMBER"]] == 13),] #Dummy paired
data row
> dpdata <- rbind(labdata[0,], NA)
> pdata <- dpdata
> # Loop through pairs of labdata to build pdata for pairs (last 10 years
or less)
> k=0
> for(j in nlabs){
+ for(i in ifpair:ilpair){
+ k <- k + 1 #Counter for number of pairs. Start at 1.
+ setwd(dirs[i]); load("labdata.Rdata") #No trailing "/" in wd
+ setwd(cdir) #Go back to original ESN pair (last pair's folder in
analysis)
+ tpdata <- labdata[which(labdata[["LAB...