Thank you
    

regards
Kunal


Uwe Ligges <[EMAIL PROTECTED]> wrote:
> Kunal Shetty wrote:
> > Uwe Ligges
> > 
> >            thank you for u prompt reply
> > 
> >         my problem was in step3
> > 
> >         where my function returns two  different arrays.
> > 
> > Yes i did try returning an object from the array.
> > 
> > but the problem became...i tired returning the two arrays in a dataframe  such as
> > 
> > 
> > 
> > newXY <- data.frame("newXmean"=newx, "newYmean" =newy)
> > 
> 
> 
> Please don't use double spacing.
> 
> 
> You want to return a list:
> 
> foo1 <- function(.....){
>       .....
>       return(list(newXmean = newx, newYmean = newy))
> }
> 
> and call the resulting objects as follows:
> 
> foo2 <- function(.....){
>       new <- foo1(.....)
>       print(new$newXmean)
>       print(new$newYmean)
> 
> }
> 
> 
> Uwe Ligges

______________________________________________
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to