[R] how to initial a list to store data result?

Peter Langfelder peter.langfelder at gmail.com
Tue Jun 22 01:22:53 CEST 2010

On Mon, Jun 21, 2010 at 4:18 PM, song song <rprojecthelp at gmail.com> wrote:
> May I ask how to initialize a list?
> usually I will use " result=list(0) "  to do this. is this right?

It works, but it is cleaner to use


The difference is that list(0) will have one component that contains
the number zero, whereas list() will simply initialize an empty list
(no components).


More information about the R-help mailing list