Displaying 1 result from an estimated 1 matches for "histrogram".
Did you mean:
histogram
2011 Jan 27
2
creating categorical frequency tables from continuous data
...places. eg
distance
1000
6403.124
1000
1414.214
1414.214
1000
I want to organise this into a frequency table, grouping into categories
of 0 - 999, 1000 - 1999, 2000-2999 etc. I'd also like the rows where
there are no data points in that category to contain 0, in order to be
able to plot a histrogram with a linear x axis, and to statistically
analyse differences between datasets.
I have tried table() which doesn't group the data the way I'd like it,
I've also tried cut() but couldn't make it work. Ideally I'd like the
output to look something like this...
distance...