Skip to content

summary nls output

3 messages · Chun-Ying Lee, Brian Ripley, Andrew Robinson

#
Dear R user:
    I bulid a package, and in the package I use the function "nls"
to solve some questions. If I have two sets of data, and I want to 
summary these two data's nls output, I write the command in the 
package source code like:
{
..........
summary(fm1)
summary(fm2)
}
then i compiler the package and use "Install package(s) from 
local zip files" to install my package.
But when I run the package, it just show the summary(fm2), the
part of summary(fm1) miss, why is it so?
Any suggestions would be most helpful! Thanks!!
#
On Sun, 25 Sep 2005, Chun-Ying Lee wrote:

            
You forgot to print it.  See the FAQ 7.16 and 7.22.
Did you read the posting guide?  That does ask you to read the FAQ before
posting.
#
This is because R only permits one object to be output.  If you weould
like two objects, you might try something like

{
..........
list(fm1 = summary(fm1), fm2 = summary(fm2))
}

Good luck,

Andrew
On Sun, Sep 25, 2005 at 06:49:26PM +0800, Chun-Ying Lee wrote: