[R] Histogram of a dataframe subset failing
NICOADAMS000 at GMAIL.COM
Sun Jul 24 08:23:59 CEST 2011
Like most help forum users, I'm very new to R. I've been having this problem:
I started with a dataframe called fullData. With the subset command, I split
it into two separate dataframes, soloData and teamData.
The hist() function works when I use...
hist( subset(fullData, fullData$playlist_id==4 )$deaths)
...the exact call to subset() that I used to create each dataframe. However,
when I input,
I get the error, " invalid number of 'breaks' ". I tried manually setting
the breaks to 20:
The error I got was complete gibberish to me. Here it is in full:
Error in hist.default(soloData$deaths, breaks = 40) :
hist.default: pretty() error, breaks=
In addition: Warning messages:
1: In min(x) : no non-missing arguments to min; returning Inf
2: In max(x) : no non-missing arguments to max; returning -Inf
Can anyone explain what's going on? Or more directly, how can I take the
histogram of a dataframe subset?
View this message in context: http://r.789695.n4.nabble.com/Histogram-of-a-dataframe-subset-failing-tp3689884p3689884.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help