Re: [R] Append text to panels of lattice::barchart()

2013-11-26 Thread Tim Sippel
dlier > > Duncan > > Duncan Mackay > Department of Agronomy and Soil Science > University of New England > Armidale NSW 2351 > Email: home: mac...@northnet.com.au > > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.or

[R] Append text to panels of lattice::barchart()

2013-11-26 Thread Tim Sippel
I could use a little help writing a panel function to append text to each panel of a lattice::barchart(). Below is a modified version of the barley dataset to illustrate. data(barley) # add a new variable called samp.size barley$samp.size<-round(runif(n=nrow(barley), min=0, max=50),0) # Below is

Re: [R] Conditional operation on multiple columns from two data frames

2008-12-27 Thread Tim Sippel
quot;, "2007-02-22 00:00:00", "2007-02-22 12:00:00", "2007-02-23 00:00:00", "2007-02-23 12:00:00" ), y = c(-20.829075, -20.824995, -20.822355, -37.4096, -37.37515, -37.277, -37.17855, -37.07595, -36.91965, -36.74345, -36.49245, -36.2415, -35.955), x = c(217.7022,

[R] Conditional operation on multiple columns from two data frames

2008-12-27 Thread Tim Sippel
Hi- I have two data frames for which I wish to conditionally subtract the values of one dataframe from the other. I want to subtract df1$x from df2$x when their id is equal and the absolute value of difference between the dates is 12 hours or less. If there is no match of equal id's and dates le