Skip to content
Prev 29518 / 398500 Next

How would I analyse data like this?

Laurent  -

Good for you for figuring out scan().  For hist(), append one more
number to "breaks" that's guaranteed to be above all the data values.
(In the return value from hist(), "breaks" has n+1 entries when the
histogram has n bars, and it's a good guess that input=output.)

For example:
hist(data[[5]], br=c(50*(seq(11)-1), 1000, 1+max(data[[5]])))

For counting, try the function table().  eg:

table(data[[3]], data[[6]])
table(data[[3]], data[[7]], data[[6]])

-  tom blackwell  -  u michigan medical school  -   ann arbor  -
On Wed, 19 Mar 2003 laurent.duperval at microcell.ca wrote: