I have a table which looks like
value(0 < v< 1), # of events
--------------- -----------
0.1, 1000
0.5, 20000
0.7, 3000000
0.1, 400000000
0.5, 50000000000
0.9, 6000000000000
..., ...
the value can take any number from 0 to 1 possibly with repetition and the number of event is so large that it is inefficient to transform this into a usual form of vector, like
0.1,0,1,...0.1, 0.5,0.5,0.5, ...
When I try to apply some function, eg plot()
, to this table, R does not identify rows with same value but treats them separately. What would be a good way of doing some statistics with this kind of table as if we have the following table?
value, # of events
0.1, 400001000
0.5, ...