Hi PJ,

I think you can do

data.frame(data)
coordinates(data)=~X+Y
gridded(data)=TRUE

summary(data)

It will keep all the variable...

Cheers

Sam

On Fri, Nov 18, 2011 at 3:03 PM, priyantha jayakody
<priyantha518@gmail.com>wrote:

> hi
> Is any one know how to make a grid from a data frame. As a example "meuse"
> data in "gstat" has meuse.grid which include all the variable (not only X
> and Y). I tried my data with "makegrid" function in SP pacakge but it gives
> X and Y only
> any suggestion would be great
> i just want a grid file with all attributes
>
> thanks
> PJ
>
>        [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

	[[alternative HTML version deleted]]

