Re: [R] Big data and column correspondence problem

2011-07-27 Thread murilofm
Daniel, thanks for the help. I finally made it, doing the merging separately. Daniel Malter wrote: > > On a different note: how are you matching if AA has multiple matches in > BB? > About that, all I have to do is check whether, for any of the BB which matches with AA, the indicator equals 1.

Re: [R] Big data and column correspondence problem

2011-07-26 Thread murilofm
Thanks Daniel, that helped me. Based on your suggestions I built this final code: library(foreign) library(gdata) AA = c(4,4,4,2,2,6,8,9) A1 = c(3,3,11,5,5,7,11,12) A2 = c(3,3,7,3,5,7,11,12) A = cbind(AA, A1, A2) BB = c(2,2,4,6,6) B1 =c(5,11,7,13,NA) B2 =c(4,12,11,NA,NA) B3 =c(12,13,NA,NA

Re: [R] Big data and column correspondence problem

2011-07-26 Thread murilofm
Daniel, thanks for the answer. I will try to make myself i little bit clearer. Doing step by step I would have (using a loop trough the lines of 'A'): 1. AA[1] is 4. As so, I would have to compare A1[1] = 20 and A2[1] =3 with B1 B2 B3 B[3,2:4] 7 11 NA beacause BB[3]=4. Since there is

[R] Big data and column correspondence problem

2011-07-25 Thread murilofm
Greetings, I've been struggling for some time with a problem concerning a big database that i have to deal with. I'll try to exemplify my problem since the database is really big. Suppose I have the following data: AA = c(4,4,4,2,2,6,8,9) A1 = c(3,3,5,5,5,7,11,12) A2 = c(3,3,5,5,5,7,11,12) A = cb

Re: [R] Simple question about symbols()

2011-04-20 Thread murilofm
Thank you for the answer and sorry about the bad post i'll remember that in the future. By the way, the line code i used to read the data was inv <- read.csv("data.csv", header=TRUE, sep=";") I tried before to use the bg, but for some reason it wasn't working out for me. But now i got it. Th

Re: [R] Simple question about symbols()

2011-04-20 Thread murilofm
The link to the csv file is http://www.filedropper.com/data_5 I use the "d" variable to create the radius: radius <- sqrt( inv$d/ pi ) and i tried symbols(inv$a, inv$b, circles=radius, inches=0.35, fg="white", bg="red", xlab="aa", ylab="bb", col=c("blue","red")[inv$c+1]) Thanks for the

Re: [R] Simple question about symbols()

2011-04-19 Thread murilofm
Thanks for the answer; I see that col=c("blue","red")[inv$c+1] creates a vector of "red" and "blue" associated with the binnary c. But still I got everything red. -- View this message in context: http://r.789695.n4.nabble.com/Simple-question-about-symbols-tp3461676p3462013.html Sent from the R he

[R] Simple question about symbols()

2011-04-19 Thread murilofm
I'm new to R and i'm having some trouble with a bubble chart. Basically I have 3 series (a,b,c), but the third one is a binnary variable (assumes only 0 or 1 to the entire data). How can I use these binnary information to make 2 different colours in a bubble chart?. I.e., I'm using this code: sym