Re: [R] creating categorical frequency tables from continuous data

2011-01-27 Thread Dennis Murphy
Hi: Using your data below as the template, u <- cut(x, breaks = c(0, seq(1000, 7000, by = 1000)), dig.lab = 4, right = FALSE) as.data.frame(table(u)) u Freq 1[0,1000)0 2 [1000,2000)5 3 [2000,3000)0 4 [3000,4000)0 5 [4000,5000)0 6 [5000,6000)0 7 [6000,7000)

Re: [R] creating categorical frequency tables from continuous data

2011-01-27 Thread Sascha Vieweg
On 11-01-27 14:58, Louise Mair wrote: Hello, I am working with a dataset which essentially has only one column - a list of distances in metres, accurate to several decimal places. eg distance 1000 6403.124 1000 1414.214 1414.214 1000 I want to organise this into a frequency table, grouping

[R] creating categorical frequency tables from continuous data

2011-01-27 Thread Louise Mair
Hello, I am working with a dataset which essentially has only one column - a list of distances in metres, accurate to several decimal 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 - 199