[R] uneven list to matrix

2007-08-23 Thread Christopher Marcum
Hello, I am sure I am not the only person with this problem. I have a list with n elements, each consisting of a single column matrix with different row lengths. Each row has a name ranging from A to E. Here is an example: alph[[1]] A 1 B 2 C 3 D 4 alph[[2]] A 1 C 3 D 4 alph[[3]] A 1 D 4 E 5

Re: [R] uneven list to matrix

2007-08-23 Thread Christopher Marcum
)) On 8/23/07, Christopher Marcum [EMAIL PROTECTED] wrote: Hello, I am sure I am not the only person with this problem. I have a list with n elements, each consisting of a single column matrix with different row lengths. Each row has a name ranging from A to E. Here is an example: alph[[1

Re: [R] uneven list to matrix

2007-08-23 Thread Christopher Marcum
Hi Gabor, My apologies. Both solutions work just fine on large lists (n=1000, n[[i]]=500). A memory problem on my machine caused the error and fail-to-sort. Thank you! PS - The zoo method is slightly faster. Best, Chris Gabor Grothendieck wrote: On 8/24/07, Christopher Marcum [EMAIL PROTECTED

[R] String manipulation, insert delim

2007-06-18 Thread Christopher Marcum
Hello All, I've been using R for two years now and I am happy to say this is the first time I could not find the answer to my problem in the R-help archives. Here is the pending problem: I want to be able to insert delimiters, say commas, into a string of characters at uneven intervals such