\HeaderA{loadModel}{Load a Model (and a MVC) object into mvcEnv environment}{loadModel}
\keyword{data}{loadModel}
\begin{Description}\relax
loadModel creates a model object and a MVC object and loads them into the 
environment variable, MVCList, in mvcEnv.  This function will 
be called by the handleMessage method for a gAddDataMessage object.  Note 
that it is this function that ensures that there is a one to one 
correspondence between a model and a MVC object.
\end{Description}
\begin{Usage}
\begin{verbatim}
loadModel(data, name)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{data}] the dataframe or matrix 
\item[\code{name}] the data set name - a character string 
\end{ldescription}
\end{Arguments}
\begin{Author}\relax
Elizabeth Whalen
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{getData}{getData}},
\code{\LinkA{loadData}{loadData}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
  if (interactive())
  {
    # these should be called by selecting Open Data under the File menu or
    # by using the loadData function
    data(USArrests)
    loadModel(USArrests, "USArrests")
  }
\end{ExampleCode}
\end{Examples}

