On Mon, Jul 13, 2009 at 12:08 PM, David Winsemius<dwinsem...@comcast.net> wrote:
> In R a function only returns the last evaluation, so you need to wrap up all
> of the local results into a list at the end of the function.
>
>

<SNIP>
>
> David Winsemius, MD
> Heritage Laboratories
> West Hartford, CT
>

How important it is to wrap the list in a return statement, ala

return(list(ShrubCover.df, TreeCover.df, TotalCover.df))

or

answer <- list(ShrubCover.df, TreeCover.df, TotalCover.df)
return(answer)

Thanks,
Mark

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to