Skip to content
Back to formatted view

Raw Message

Message-ID: <9a38bfc70512300647s422e32b1m46681a801b97f2e9@mail.gmail.com>
Date: 2005-12-30T14:47:59Z
From: Xiyan Lon
Subject: Count or summary data

Dear all,
I want to summary and count my data something like
> te.Ce
      [,1] [,2]
 [1,]   -1 0.05
 [2,]    1 0.05
 [3,]    1 0.00
 [4,]    0 0.05
 [5,]   -1 0.00
 [6,]    0 0.10
 [7,]    1 0.10
 [8,]   -1 0.00
 [9,]   -1 0.10
[10,]    0 0.05
[11,]    0 0.10
[12,]   -1 0.10
[13,]    1 0.00
[14,]   -1 0.05
[15,]    1 0.00

How could I count (summary) all my data which I need the result like

for 0.05
-1  0  1
 2  2  1

for 0.00
-1  0  1
 2  0  3

for 0.10
-1  0  1
 2  2  1

I have tried with summary but I did not find what I need.
Maybe someone could help me.
Happy new year.
Xiyan Lon