On Wed, Aug 25, 2010 at 1:53 PM, Edzer Pebesma
edzer.pebe...@uni-muenster.de wrote:
Barry, what exactly did you try out before you posted?
Your claim is not completely true: geoR has a function
as.geodata.SpatialPointsDataFrame, so you can do, for instance:
library(geoR)
data(meuse) # from
I think that such a package would be very useful. It could have a
single function like
convert(x, 'AnotherClass')
The package would only need to depend on sp, all the other packages
would be suggested such that you do not need to install the packages
you do not use.
Robert
On Wed, Aug 25,
Rather something like this in the simplest form; i.e. using an S4
method for inheritance, and passing it on to other packages as much as
possible.
setMethod('convert', signature(x='ANY', class='character'),
function(x, class, ...) {
y - try( as(x, class), silent=TRUE )
if (class(y)
Hi,
Recently while teaching at SFU I hit the problem that infects R when
many people work on similar projects - the multitude of data formats
for similar data. The sp project was partly an attempt to give a
standard format for spatial data but its widespread non-use in older
packages causes
On Wed, 18 Aug 2010, Barry Rowlingson wrote:
Hi,
Recently while teaching at SFU I hit the problem that infects R when
many people work on similar projects - the multitude of data formats
for similar data. The sp project was partly an attempt to give a
standard format for spatial data but its