Skip to content
Prev 315744 / 398506 Next

compare and count data

Hi Roslina,
No problem.
If you take out the i from the code,
1-(res/1000)
#?? V1??? V3??? V2??? V4 
#1.000 1.000 0.981 1.000 
Is it what you were looking for?

Also, in addition, you could also try:
? #if the total column number is even
critical<-rep(c(1.61,75.89),ncol(mydata)/2)
#if it is odd,
critical1<-c(rep(c(1.61,75.89),(ncol(mydata)-1)/2),1.61)

colSums(mapply("<",mydata,critical))
#V1 V2 V3 V4 
# 0 19? 0? 0 


A.K.
Message-ID: <1358778899.63634.YahooMailNeo@web142606.mail.bf1.yahoo.com>
In-Reply-To: <1358754309.18440.YahooMailNeo@web120606.mail.ne1.yahoo.com>