Skip to content

compare and count data

1 message · arun

#
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.