Skip to content
Prev 17231 / 29559 Next

See coordinates vector in raster

Michael and Barry,

Thank you for the tips. Both worked like a charm!

Regards,
Thiago.


----- Original Message -----
From: Barry Rowlingson <b.rowlingson at lancaster.ac.uk>
To: Michael Sumner <mdsumner at gmail.com>
Cc: Thiago V. dos Santos <thi_veloso at yahoo.com.br>; R-SIG list <r-sig-geo at r-project.org>
Sent: Wednesday, January 23, 2013 7:33 AM
Subject: Re: [R-sig-Geo] See coordinates vector in raster
On Wed, Jan 23, 2013 at 12:06 AM, Michael Sumner <mdsumner at gmail.com> wrote:
Better to use xFromCol and yFromRow!

xFromCol(r,1:ncol(r))
yFromRow(r,1:nrow(r))

should do the job.

Barry