Displaying 1 result from an estimated 1 matches for "codefun".
2009 Feb 20
2
why doesn't table() have a data=argument?
...t might be
hard to add a data= argument to table()? I've looked at the code, but
am not enlightened
on this question.
\emph{Example}: Convert the \code{Arthritis} data in case form to a
3-way table of
\code{Treatment} $\times$ \code{Sex} $\times$ \code{Improved}.%
\footnote{
Unfortunately, \codefun{table} does not allow a \code{data} argument to
provide
an environment in which the table variables are to be found. In the
examples in \secref{sec:table} I used \code{attach(mydata)} for this
purpose,
but \codefun{attach} leaves the variables in the global environment,
while \codefun{with} just...