Your example below is very hard to read. But if I understand it
correctly, the following change,
bike_df - as.data.frame(as.vector(bike_mat))
may result in something that is syntactically correct; whether it does
what you want is not clear from the context.
Hth,
On 05/28/2011 06:18 PM, Chris
From: tgrif...@uaex.edu
Subject: RE: [R-sig-Geo] Creating SpatialGridDataFrame - unequal number of
objects
Date: Sat, 28 May 2011 18:39:09 -0500
To: sgl...@hotmail.com; r-sig-geo@r-project.org
Terry Griffin, PhD
tgrif...@uaex.edu
501.249.6360
Dear List:
I have a SpatialGrid for which I am trying to make adata.frame and thence a
SpatialGridDataFrame.
I can't seem to get the size of data.frame and gridto match up. I assume I'm
missing something straight forward.
summary(grid1)Object of class SpatialGridCoordinates: min maxx 0.5
Terry Griffin, PhD
tgrif...@uaex.edu
501.249.6360
-Original Message-
From: Chris English sgl...@hotmail.com
Sent: Saturday, May 28, 2011 11:20 AM
To: r-sig-geo@r-project.org
Subject: [R-sig-Geo] Creating SpatialGridDataFrame - unequal number of objects
Dear List:
I have a SpatialGrid