\HeaderA{sortedXyData}{Create a sortedXyData object}{sortedXyData}
\methaliasA{sortedXyData.default}{sortedXyData}{sortedXyData.default}
\keyword{manip}{sortedXyData}
\begin{Description}\relax
This is a constructor function for the class of \code{sortedXyData}
objects.  These objects are mostly used in the \code{initial}
function for a self-starting nonlinear regression model, which will be
of the \code{selfStart} class.
\end{Description}
\begin{Usage}
\begin{verbatim}
sortedXyData(x, y, data)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] a numeric vector or an expression that will evaluate in
\code{data} to a numeric vector 
\item[\code{y}] a numeric vector or an expression that will evaluate in
\code{data} to a numeric vector 
\item[\code{data}] an optional data frame in which to evaluate expressions
for \code{x} and \code{y}, if they are given as expressions 
\end{ldescription}
\end{Arguments}
\begin{Value}
A \code{sortedXyData} object. This is a data frame with exactly
two numeric columns, named \code{x} and \code{y}.  The rows are
sorted so the \code{x} column is in increasing order.  Duplicate
\code{x} values are eliminated by averaging the corresponding \code{y}
values.
\end{Value}
\begin{Author}\relax
Jose Pinheiro and Douglas Bates
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{selfStart}{selfStart}}, \code{\LinkA{NLSstClosestX}{NLSstClosestX}},
\code{\LinkA{NLSstLfAsymptote}{NLSstLfAsymptote}}, \code{\LinkA{NLSstRtAsymptote}{NLSstRtAsymptote}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
DNase.2 <- DNase[ DNase$Run == "2", ]
sortedXyData( expression(log(conc)), expression(density), DNase.2 )
\end{ExampleCode}
\end{Examples}

