Re: [R] Question regarding sqldf

2009-07-31 Thread Rizzo . Michael
My sqldf package was already updated. The result from the example you ran is also missing 2 of the five days so something still isn't working correctly. | | From: | |

[R] Question regarding sqldf

2009-07-30 Thread Rizzo . Michael
Hello, I am having a problem using sqldf. I'm trying to choose a subset of observations from a data set based on the date and maximum value of a variable by date. Here is the code I am using: test-sqldf(select distinct * from bextuse group by sdate having bext=max(bext),method=raw); The

Re: [R] Question regarding sqldf

2009-07-30 Thread Rizzo . Michael
Here is a test data frame: testframe-data.frame(sdate=rep(paste (day,1:5,sep=),each=5),bext=runif(25,1,100),otherstuff=runif (25,45,60),stuff=runif(25,3,25)) testframe sdate bext otherstuff stuff 1 day1 37.863859 49.19816 10.036211 2 day1 58.557049 59.23145

[R] Does the labpt object in the Polygons-class represent the centroid of the polygon

2009-02-05 Thread Rizzo . Michael
Hello, I need to calculate the centroids of some spatial polygons that I have placed into a Polygons-class object. Is the labeling point in the Polygons-class the centroid of the polygon? Thank you for your help. __ R-help@r-project.org mailing list