Reputation: 3
I am building kriging model in R. I have plotted Lat Longs of city.With the help of locator function I have figured out boundries of city. Now I want to expand this thing which I can do using grid.expand fuction in which we do have "by" argument in which we can mention figure in meters. But i am getting error which running this line,
referring this site for coding
rd <- read.csv("Test.csv")
coordinates(rd) = ~Long+Lat
plot(rd)
locator(4)
x.range <- as.integer(c(72.74158,73.01315))
y.range <- as.integer(c(19.23944,18.88680))
grd <- expand.grid(
x=seq(from=x.range[1], to=x.range[2], by=200),
y=seq(from=y.range[1], to=y.range[2], by=200)
)
coordinates(grd) <- ~ x+y
gridded(grd) <- TRUE
Upvotes: 0
Views: 58