You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Coordinates returned by spsample can have different names depending on the sampling method used. For instance, random and hexagonal sampling return coordinate pairs named x and y, while for regular and nonaligned sampling coordinate pairs are named x1 and x2. the reason for this is that the last two make use of makegrid0 to generate the samples, a function that contains the following line of code inside a for-loop:
name = paste("x", i, sep = "")
I think that it is important to standardize the outputs of spsample so that others can make a more efficient use of spsample. For instance, this could be done by placing the following line o code at the end of the makegrid0 function definition:
colnames(xy) <- c('x', 'y')
The text was updated successfully, but these errors were encountered:
Coordinates returned by
spsample
can have different names depending on the sampling method used. For instance, random and hexagonal sampling return coordinate pairs namedx
andy
, while for regular and nonaligned sampling coordinate pairs are namedx1
andx2
. the reason for this is that the last two make use ofmakegrid0
to generate the samples, a function that contains the following line of code inside afor
-loop:I think that it is important to standardize the outputs of
spsample
so that others can make a more efficient use ofspsample
. For instance, this could be done by placing the following line o code at the end of themakegrid0
function definition:The text was updated successfully, but these errors were encountered: