[R-sig-Geo] help on programing

Roger Bivand Roger.Bivand at nhh.no
Fri Jun 16 18:10:22 CEST 2006

On Fri, 16 Jun 2006, zhijie zhang wrote:

> Dear friends,
>   I want to finish the following task, hope someone to give the R
> programs,thanks.

Could I ask for a little clarification?

> *step1*: Generate a planar x(0,100)*y(0,100) ;

This is a 0,100 by 0,100 square, right?

> *step2*: Divide the planar into 100 grids,either use the number of grids or
> use the coordinates of x/y;(like gridpts(poly,npts,xs,ys)
> #gridpts(splancs),)

How many grid cells do you need, 100 or 100 by 100?, that is npts=100 or 

> *step3*: generate the spatial points with autocorrelation, and link points
> with the grid center;

Are the points from a point process model, in which case do you want 
clustered or regular? And if so, do you want to assign them to the grid 
cells (I think so)?


>  how to do that ? Because of poor R programing techniques, I hope someone
> will spend a few minutes to help me.
> Any suggestions are greately welcome!
> Hope to get the programs as soon as possible.
> With kind regards,
> Wei,Chang
> 	[[alternative HTML version deleted]]
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no

More information about the R-sig-Geo mailing list