[R] Histogram for grouped data in R

2009-01-23 Thread darthgervais
I have grouped data in this format Size -- Count 0-10 -- 15 10-20 -- 25 20-50 -- 10 50-100 -- 5 I've been trying to find a way to set this up with the proper histogram heights, but can't seem to figure it out. So any help would be much appreciated! -- View this message in context: http://www

[R] Is variable in one vector part of variable in another

2008-05-31 Thread darthgervais
I have 2 vectors x & z x has 10 variables in it z has 75 variable in it I need to check all 75 variables in z and see if they are present in the vector x. So far this is what I have: for (i in 0:75){ if (z[i]==x) (w=w+1) } Thanks in advance w -- View this message in context: http://www.nabbl