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

DimmestLemming NICOADAMS000 at GMAIL.COM
Tue Aug 30 17:08:46 CEST 2011


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,offense)

but it always gives me the same error:

Error in rep.int(rep.int(seq_len(nx), rep.int(rep.fac, nx)), orep) : 
  negative length vectors are not allowed

Solutions that haven't worked:
- Changing offense into a data frame
- Data doesn't exceed the 2^31 (2 billion) limit for length. When combined
with offense, it will have about 68 million items total

Thanks! DL

--
View this message in context: http://r.789695.n4.nabble.com/Negative-length-vector-error-in-simple-merge-tp3778980p3778980.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list