Re: [R] return(x=x,y=y,prob=prob) hasn't been used in R now?

2007-09-23 Thread Zhang Honglian
t) } b=a(10, 20) __ From: "zhijie zhang" <[EMAIL PROTECTED]> To: "Prof Brian Ripley" <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: [R] return(x=x,y=y,prob=prob) hasn't bee

Re: [R] return(x=x,y=y,prob=prob) hasn't been used in R now?

2007-09-23 Thread zhijie zhang
Dear Prof. Brian Ripley, You are absolutely right. The warning message in R for my Chinese Windows system is Chinese words, so i translate it into english, which maybe not that exact in the meanings. Thanks very much. On 9/23/07, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > > On Sun, 23 Se

Re: [R] return(x=x,y=y,prob=prob) hasn't been used in R now?

2007-09-23 Thread Prof Brian Ripley
On Sun, 23 Sep 2007, Peter Dalgaard wrote: > zhijie zhang wrote: >> Dear friends, >> Now, when i use the argument return(x=x,y=y,prob=prob) , R displays the >> waring message: >> Warning message: >> The return value for multiple variables wasn't used in: return(x = x, y = >> gy, prob = prob) >>

Re: [R] return(x=x,y=y,prob=prob) hasn't been used in R now?

2007-09-23 Thread zhijie zhang
It works well. Thanks a lot. On 9/23/07, Christian Ritz <[EMAIL PROTECTED]> wrote: > > Hi! > > Use a list structure for all the components you want to have returned > by the function: > > > return(list(x=x, y=y, prob=prob)) > > > > Christian > -- With Kind Regards, oooO: (..):::

Re: [R] return(x=x,y=y,prob=prob) hasn't been used in R now?

2007-09-23 Thread Christian Ritz
Hi! Use a list structure for all the components you want to have returned by the function: return(list(x=x, y=y, prob=prob)) Christian __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting gui

Re: [R] return(x=x,y=y,prob=prob) hasn't been used in R now?

2007-09-23 Thread Peter Dalgaard
zhijie zhang wrote: > Dear friends, > Now, when i use the argument return(x=x,y=y,prob=prob) , R displays the > waring message: > Warning message: > The return value for multiple variables wasn't used in: return(x = x, y = > gy, prob = prob) > I used the methods of "help.search("return")" and

[R] return(x=x,y=y,prob=prob) hasn't been used in R now?

2007-09-23 Thread zhijie zhang
Dear friends, Now, when i use the argument return(x=x,y=y,prob=prob) , R displays the waring message: Warning message: The return value for multiple variables wasn't used in: return(x = x, y = gy, prob = prob) I used the methods of "help.search("return")" and "?return" to get some help, but di