[R] appending to a list

2010-09-05 Thread Aks Ism
Hi, I've looked at previous discussions and did not get anything. I want to be able to append to a list in a loop. Is this possible? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] appending to a list

2010-09-05 Thread David Winsemius
On Sep 5, 2010, at 1:21 PM, Aks Ism wrote: Hi, I've looked at previous discussions and did not get anything. I want to be able to append to a list in a loop. Is this possible? Of course: ?c ?[[ -- David Winsemius, MD West Hartford, CT __

Re: [R] appending to a list

2010-09-05 Thread jim holtman
x - list() for (i in whatever){ x[[length(x) + 1L]] - someValuesForList } On Sun, Sep 5, 2010 at 1:21 PM, Aks Ism aksi...@gmail.com wrote: Hi, I've looked at previous discussions and did not get anything. I want to be able to append to a list in a loop. Is this possible?        

Re: [R] appending to a list

2010-09-05 Thread Aks Ism
No, I mean dynamically. Like list.push_back On Mon, Sep 6, 2010 at 1:01 AM, David Winsemius dwinsem...@comcast.netwrote: On Sep 5, 2010, at 1:21 PM, Aks Ism wrote: Hi, I've looked at previous discussions and did not get anything. I want to be able to append to a list in a loop. Is this

Re: [R] appending to a list

2010-09-05 Thread David Winsemius
On Sep 5, 2010, at 10:11 PM, Aks Ism wrote: No, I mean dynamically. Like list.push_back Not sure what you mean by dynamically and my Google search for the unspecified function list.push_back uncovered a C++ function that is at least as complex as what I believe would be the equivalent R