7843-4352
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
> project.org] On Behalf Of Jim Lemon
> Sent: Monday, January 21, 2013 1:17 AM
> To: Roslina Zakaria
> Cc: r-help@r-project.org
> Subject: Re: [R] compare and count data
>
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.
From: Roslina Zakaria
To: arun
Sent: Monday, January 21, 2013 2:45 AM
Subject: Re: [R] compare and count dat
-unlist(lapply(1:2,function(i)
colSums(mydata[,seq(i,ncol(mydata),by=2)]
To: "r-help@r-project.org"
Cc:
Sent: Monday, January 21, 2013 12:39 AM
Subject: [R] compare and count data
Dear r-users,
I have these data below:
I would like to compare each column with a certain value and c
On 01/21/2013 04:39 PM, Roslina Zakaria wrote:
Dear r-users,
I have these data below:
I would like to compare each column with a certain value and count how many in
each column less than that specified value.
odd column (1,3,5) will compare with 1.61 and even column (2,4,6) will compare
with
Dear r-users,
I have these data below:
I would like to compare each column with a certain value and count how many in
each column less than that specified value.
odd column (1,3,5) will compare with 1.61 and even column (2,4,6) will compare
with 75 and I would like to count how many for e
5 matches
Mail list logo