You are pretty good.
Worked nicely :)
Thanks!
Alex
From: Henrique Dallazuanna
Cc: Rhelp
Sent: Fri, September 17, 2010 4:58:50 PM
Subject: Re: [R] count frequency
So try this :
aggregate(rep(1, nrow(x)), as.data.frame(x), sum)
My bad :(
>unfortunat
t; 50 27: 3
> 50 28: 4
> 51 28: 10
> 52 28: 5
> 52 29: 3
>
> So far nothing worked.
> Best Regards
> Alex
>
>
>
> ------
> *From:* Henrique Dallazuanna
> *To:* Alaios
>
> *Cc:* Rhelp
> *Sent:* Fri, September 17, 2010 3:09:36 PM
>
> *Subject:* Re: [R] co
: 10
52 28: 5
52 29: 3
So far nothing worked.
Best Regards
Alex
From: Henrique Dallazuanna
Cc: Rhelp
Sent: Fri, September 17, 2010 3:09:36 PM
Subject: Re: [R] count frequency
Try this:
aggregate(rep(1, nrow(x)), x, sum)
Hello everyone,
>please consi
17 29
18 18 30
19 19 29
20 20 29
Best Regards
Alex
From: Jorge Ivan Velez
Cc: Rhelp
Sent: Fri, September 17, 2010 4:24:59 PM
Subject: Re: [R] count frequency
Alaios,
Try
as.data.frame(table(x[,1], x[,2))
where x is your matrix.
HTH
Alaios,
Try
as.data.frame(table(x[,1], x[,2))
where x is your matrix.
HTH,
Jorge
On Fri, Sep 17, 2010 at 8:19 AM, Alaios <> wrote:
> Hello everyone,
> please consider the following lines of a matrix
>
>
> [574,] 59 32
> [575,] 59 32
> [576,] 59 32
> [577,] 59 32
> [578,] 5
On 17-Sep-10 12:19:10, Alaios wrote:
> Hello everyone,
> please consider the following lines of a matrix
>
> [574,] 59 32
> [575,] 59 32
> [576,] 59 32
> [577,] 59 32
> [578,] 59 32
> [579,] 59 32
> [580,] 59 32
> [581,] 60 32
> [582,] 60 33
> [583,] 60 33
>
Try this:
aggregate(rep(1, nrow(x)), x, sum)
On Fri, Sep 17, 2010 at 9:19 AM, Alaios wrote:
> Hello everyone,
> please consider the following lines of a matrix
>
>
> [574,] 59 32
> [575,] 59 32
> [576,] 59 32
> [577,] 59 32
> [578,] 59 32
> [579,] 59 32
> [580,] 59 3
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 17/09/10 14:19, Alaios wrote:
> Hello everyone,
> please consider the following lines of a matrix
>
>
> [574,] 59 32
> [575,] 59 32
> [576,] 59 32
> [577,] 59 32
> [578,] 59 32
> [579,] 59 32
> [580,] 59 32
> [581,] 6
Hello everyone,
please consider the following lines of a matrix
[574,] 59 32
[575,] 59 32
[576,] 59 32
[577,] 59 32
[578,] 59 32
[579,] 59 32
[580,] 59 32
[581,] 60 32
[582,] 60 33
[583,] 60 33
[584,] 60 33
[585,] 60 33
[586,] 60 33
[587,] 60
9 matches
Mail list logo