[R-sig-Geo] center of mass for variable values in a grid

Jim Lemon jim at bitwrit.com.au
Sun Sep 12 12:01:27 CEST 2010


On 09/11/2010 09:49 AM, Waichler, Scott R wrote:
> Is there an existing function to compute the coordinates for the center of mass of a variable in a 2D or 3D grid, where dx, dy, and dz are known for all cells?  The mass in each cell varies by location.
>
Hi Scott,
I don't know of one in R, but this might help.

http://www.cgal.org/Manual/3.4/doc_html/cgal_manual/Principal_component_analysis_ref/Function_barycenter.html

Jim



More information about the R-sig-Geo mailing list