Hi Arun,
This is excellent and elegant. I thought there had to be a relatively simple
way to do this. Thank you very much.
Jeremy
From: arun kirshna [via R] [mailto:ml-node+s789695n4664328...@n4.nabble.com]
Sent: Monday, April 15, 2013 10:34 PM
To: Crowley, Jeremy
Subject: Re: matching multipl
HI,
May be this helps:
dat1<- read.table(text="
site1 depth1 year1 site2 depth2 year2
10 30 1860 NA NA NA
NA NA NA 50 30 1860
10 20 1850 11 20 1850
11 25 1950 12 25 1960
10 NA 1870 12 30 1960
11 25 1880 15 22 1890
14 22 1890 14 25 1880
",sep="",header=TRUE,stringsAsFactors=FALSE)
res<-merg
2 matches
Mail list logo