[R] Histogram from a single column of a data frame

2014-09-26 Thread Richard Lerner
Column 7 of oded is Breed. If I enter summary(Breed) I get the counts of the numbers in each breed. However, if I enter I have tried hist($Breed) Error: unexpected '$' in hist($ hist(Breed) Error in hist(Breed) : object 'Breed' not found hist(Breed) Error in hist.default(Breed) : 'x' must

Re: [R] Histogram from a single column of a data frame

2014-09-26 Thread William Dunlap
Try hist(oded$Breed) (I suspect that summary(Breed) does not work in your current session either - perhaps you had a dataset named just Breed or had attached the data.frame oded in the session where summary(Breed) works.) Bill Dunlap TIBCO Software wdunlap tibco.com On Fri, Sep 26, 2014 at

Re: [R] Histogram from a single column of a data frame

2014-09-26 Thread Rolf Turner
On 27/09/14 05:57, Richard Lerner wrote: Column 7 of oded is Breed. If I enter summary(Breed) I get the counts of the numbers in each breed. However, if I enter I have tried hist($Breed) Error: unexpected '$' in hist($ hist(Breed) Error in hist(Breed) : object 'Breed' not found