Re: [R] How to avoid "$ operator is invalid for atomic vectors"

From: cruz <cruadam_at_gmail.com>
Date: Fri, 07 Nov 2008 02:16:03 +0800

Thanks for all the responses, they are all very helpful:)

> you don't need to assign dimension or classes to your objects.
> It's easier if you do like this

this is something that really bothers me, when I need to define an object which i will later fill with data, the dimension of this object should not be fixed because it will grow...

so in MATLAB, i.e. we define x = [ ],
what about in R?

Thanks,
cruz



R-help_at_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. Received on Thu 06 Nov 2008 - 18:18:47 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 06 Nov 2008 - 20:30:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive