Re: [R-sig-Geo] Selecting a range of longitude and latitudes

2019-04-18 Thread rain1290--- via R-sig-Geo
Hi Ben (and everyone), Ah, yes, you're right - using the suggestion that you specified, that error message disappeared! So, if I understand, this would take all of the grid cells within those specified longitude and latitude ranges (i.e. that entire area)?  That said, when I try plotting this us

Re: [R-sig-Geo] Selecting a range of longitude and latitudes

2019-04-18 Thread Ben Tupper
Hi, The example you give is different than the one listed in the error message. In your example you bind two 14-element vectors into a matrix of two columns. cbind(103:116, 3:16) But in the error you show the first vector is only 8 elements long... cbind(103:110, 3:16) When R encounters an a

Re: [R-sig-Geo] Selecting a range of longitude and latitudes

2019-04-18 Thread Vijay Lulla
It appears that you might have mistakenly typed cbind(103:110, 3:16) instead of cbind(103:116, 3:16). Regardless, the warning is telling you that the vectors were of unequal lengths and there was some recycling. You can learn about recycling rule from searching "recycling rule in R" and also from

[R-sig-Geo] Selecting a range of longitude and latitudes

2019-04-18 Thread rain1290--- via R-sig-Geo
Hi there, I am trying to specify a range of longitudes and latitudes. I tried this using the following: lonlat <- cbind(103:116, 3:16)  #This would specify a range of longitudes and latitudes However, I receive the following warning message: Warning message: In cbind(103:110, 3:16) : number