Re: [R-sig-Geo] DataGrid

2017-10-15 Thread Sarah Goslee
When you create a full grid, there will be many NA values in your data for grid coordinates that you didn't provide data for. str() is only showing you the first few elements: unless your dataset has values in that corner, NA is the expected return. Use summary() or image() to investigate the who

[R-sig-Geo] DataGrid

2017-10-15 Thread Anastasia Johannes
I am trying to create DataGrid but I am failing to do so Below find my code and see how my grid dataset just end up with no data. > library(sp) > library(gstat) > coordinates(cor)=~x+y > str(cor) Formal class 'SpatialPointsDataFrame' [package "sp"] with 5 slots ..@ data :'data.frame'