Re: [R] Help with merge function

2013-04-26 Thread arun
.K. ________ From: Catarina Ferreira To: arun Sent: Friday, April 26, 2013 4:20 PM Subject: Re: [R] Help with merge function here they are. As you see the NS_update is data for only 1 province and I want it to add this data to the bigger file (data), merging the commo

Re: [R] Help with merge function

2013-04-26 Thread arun
0   0   1   1 #3 Nova Scotia    Gly   0   0  NA   2   1 A.K. From: Catarina Ferreira To: arun Sent: Friday, April 26, 2013 2:23 PM Subject: Re: [R] Help with merge function Hello, I didn't realize that the format had been ch

Re: [R] Help with merge function

2013-04-26 Thread Rui Barradas
Hello, I don't understand the question, what range? I've just changed the 'all' argument to 'all.y', without doing anything special to the variables. Can you explain what you mean? Rui Barradas Em 26-04-2013 19:30, Catarina Ferreira escreveu: Hello, Thank you for your help. However the data

Re: [R] Help with merge function

2013-04-26 Thread arun
Hi, The format is bit messed up.  So, not sure this is what you wanted. x1<- read.table(text="State_prov,Shape_name,bob2009,bob2010,bob2011 Nova Scotia,Annapolis,0,0,1 Nova Scotia,Antigonish,0,0,0 Nova Scotia,Gly,NA,NA,NA ",sep=",",header=TRUE,stringsAsFactors=FALSE) x2<- read.table(text=" FID,S

Re: [R] Help with merge function

2013-04-26 Thread Catarina Ferreira
Hello, Thank you for your help. However the dataframes I gave you were only examples, the actual dataframes are very big. Does this mean I have to write every range of data for each variable?? On Fri, Apr 26, 2013 at 2:25 PM, Rui Barradas wrote: > Hello, > > The following seems to do the trick.

Re: [R] Help with merge function

2013-04-26 Thread Rui Barradas
Hello, The following seems to do the trick. x1 <- structure(list(State_prov = c("Nova Scotia", "Nova Scotia", "Nova Scotia" ), Shape_name = c("Annapolis", "Antigonish", "Gly"), bob2009 = c(0L, 0L, NA), bob2010 = c(0L, 0L, NA), bob2011 = c(1L, 0L, NA)), .Names = c("State_prov", "Shape_name", "