\Header{ppinit}{Read a Point Process Object from a File}
\keyword{spatial}{ppinit}
\begin{Description}\relax
Read a file in standard format and create a point process object.
\end{Description}
\begin{Usage}
\begin{verbatim}
ppinit(file)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{file}] string giving file name

\end{ldescription}
\end{Arguments}
\begin{Details}\relax
The file should contain

the number of points\\
a header (ignored)\\
xl xu yl yu scale\\
x y (repeated n times)\\
\end{Details}
\begin{Value}
class \code{"pp"} object with components \code{x}, \code{y},
\code{xl}, \code{xu}, \code{yl}, \code{yu}
\end{Value}
\begin{Section}{Side Effects}
Calls \code{ppregion} to set the domain.
\end{Section}
\begin{References}\relax
Venables, W. N. and Ripley, B. D. (2002)
\emph{Modern Applied Statistics with S.} Fourth edition.  Springer.
\end{References}
\begin{SeeAlso}\relax
\code{\Link{ppregion}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
towns <- ppinit("towns.dat")
par(pty="s")
plot(Kfn(towns, 10), type="b", xlab="distance", ylab="L(t)")
\end{ExampleCode}
\end{Examples}

