> -----Original Message-----
> From:  Martin Ivanov
> I have the longitudes (lon) and latitudes (lat), and I have a 
> resolution (r), for example r = 0.004. The bounding box must 
> have the same number of digits as resolution. 
Surely the issue is not the particular numeric resolution of the numbers but 
the idea that the bounding box limits should be integer multiples of the 
resolution?

Is that not accomplished more straightforwardly by things like
 min <- resol * floor( min(lat)/resol )
 max <- resol * ceil( max(lat)/resol )

?

S Ellison*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to