Re: [R] "Negative length vector" error in simple merge

2011-08-30 Thread DimmestLemming
Thanks! I'd just never heard of cbind or rbind... bit new. -- View this message in context: http://r.789695.n4.nabble.com/Negative-length-vector-error-in-simple-merge-tp3778980p3779267.html Sent from the R help mailing list archive at Nabble.com. __ R-

[R] "Negative length vector" error in simple merge

2011-08-30 Thread DimmestLemming
Hi, I'm trying to take a vector (length almost 2,000,000) and merge it with a data frame of the same length. I'm trying to do it solely based on index, and not any other factors. The vector is called "offense", and the data frame is just called "data". I went with the simplest option: merge(data

[R] Function won't permanently assign values to a vector

2011-08-28 Thread DimmestLemming
I'm somewhat new to R, but I've had a lot of experience in Java. I'm working on a function that takes data from a data frame, does some math and assigns the values to a vector. Pretty simple. I plan to merge the vector with the data frame when I'm done. The vector is called offense1 (there will e

[R] Clean up a scatterplot with too much data

2011-08-02 Thread DimmestLemming
I'm working with a lot of data right now, but I'm new to R, and not very good with it, hence my request for help. What type of graph could I use to straighten out things like... http://r.789695.n4.nabble.com/file/n3711389/Untitled.png ...this? I want to see general frequencies. Should I use som

Re: [R] Trouble with line of best fit

2011-07-25 Thread DimmestLemming
Daniel Malter wrote: > > Second, given the figure, a linear specification is obviously a > misspecification of your model, unless you account for autocorrelation. > I've decided to use this as a learning opportunity. I looked up autocorrelation: It does not apply in any way. By your standards,

Re: [R] Trouble with line of best fit

2011-07-25 Thread DimmestLemming
Thanks! It was easy to solve, then... I just hadn't considered that. For the record: I've never actually taken statistics, so I'm learning it at the same time as R. So yes, this is a private project. -- View this message in context: http://r.789695.n4.nabble.com/Trouble-with-line-of-best-fit-tp3

[R] Trouble with line of best fit

2011-07-25 Thread DimmestLemming
I don't usually do much with graphs in R, and this is my first time adding a line of best fit. Hopefully this is an easy problem to solve. I'm looking at a variable called soloKills along the range 5:28. Here are all my commands, in script form: range=5:28 graph=soloKills title="Solo kill/death d

Re: [R] Histogram of a dataframe subset failing

2011-07-24 Thread DimmestLemming
Thanks! It was late, so this didn't occur to me, but I tried summary() and all values were NA. The subset had resulted in a dataframe with 0 rows somehow, but now that's fixed. -- View this message in context: http://r.789695.n4.nabble.com/Histogram-of-a-dataframe-subset-failing-tp3689884p3690504

[R] Histogram of a dataframe subset failing

2011-07-24 Thread DimmestLemming
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==

Re: [R] Basic vector logic not working

2011-07-10 Thread DimmestLemming
Thanks so much! The single & did it, and now I know how that works -- View this message in context: http://r.789695.n4.nabble.com/Basic-vector-logic-not-working-tp3656465p3657958.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r

[R] Basic vector logic not working

2011-07-09 Thread DimmestLemming
I am interning in a computer science lab and I'm very new to R. The language basics are clear, but this particular problem isn't: I have a very large dataframe called "data" which holds data from Halo matches. I'm trying to analyze a certain window such that data$deaths>20 and data$deaths<=27. Wh