Re: [R] ppinit

From: Roger Bivand <>
Date: Tue 14 Jun 2005 - 05:47:45 EST

On Mon, 13 Jun 2005 wrote:

> Probably a simple question, but I can't find the answer to it ... In the
> 'ppinit' code it describes how it takes a 'file in standard format' and
> creates a point process object with it. Can anyone enlighten me as to
> what this 'standard format' is? The example given doesn't allow me to
> view the '.dat' file that apparently is in this format. Thanks, Suzie

The ppinit() function is in the spatial package, for which the book: Venables, W. N. and Ripley, B. D. (2002) _Modern Applied Statistics with S._ Fourth edition. Springer, is the documentation. There (p. 433) you see that the function reads point coordinates in 2D, and the bounding coordinates of a rectangular domain.

If you just enter the function name at the prompt, you'll see its code, from which the rest follows, that is you get a list with x and y components, and the definition of the rectangle. In addition ppinit() calls ppregion() to set the domain for analysis.

If you'd like to look at an example:"ppdata", "towns.dat", package = "spatial"))

will show you the file provided with the package.

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

______________________________________________ mailing list
PLEASE do read the posting guide!
Received on Tue Jun 14 05:52:36 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:33 EST