Skip to content
Prev 316975 / 398506 Next

cumulative sum by group and under some criteria

Hi,

maxN<- 9


?res3new<- ?aggregate(.~m1+n1,data=res2[,c(1:2,12:13)],max)
?d2<-res3new[res3new[,3]<0.01 & res3new[,4]<0.01,]

?d2
# ?m1 n1 cterm1_P1L cterm1_P0H
#2 ?3 ?2 ? ?0.00032 ? ? 0.0025

?(d2$m1+2)
#[1] 5
?maxN-(d2$n1+2)

#[1] 5
dnew<-expand.grid((m1+2):(maxN-(n1+2)),(n1+2):(maxN-m),0:m1,0:n1, x1:(x1+m-m1),y1:(y1+n-n1)) # ?I couldn't find ?"m" or "n"?

? ? ? ? A.K. ? ? ? ? ? ? ? ? ? ? ? ? ?
Message-ID: <1360176077.31459.YahooMailNeo@web142603.mail.bf1.yahoo.com>
In-Reply-To: <CACexUkvV4ccBGyFGFKJ5vKFEuZjMQxsxrLsK-vy3prW_ZN3cww@mail.gmail.com>