Re: [Rd] $- fails (invalid subscript type 'language')

2010-10-25 Thread Vitalie S.
There are some things you are not really supposed to mess with in R... Computing the index to $-constructs is one of them (trying to set up a for loop as a call to `for` is another). It can be done, it's just rather painful, and most likely not what you wanted in the first place. Sorry, I

Re: [Rd] $- fails (invalid subscript type 'language')

2010-10-25 Thread Vitalie S.
Simon Urbanek simon.urba...@r-project.org writes: On Oct 24, 2010, at 4:21 PM, Vitalie S. wrote: David Winsemius dwinsem...@comcast.net writes: On Oct 24, 2010, at 5:35 AM, Vitalie S. wrote: This might be just beyond of my understanding of how assignment works in R, but the

Re: [Rd] $- fails (invalid subscript type 'language')

2010-10-25 Thread Vitalie S.
spinuvit.l...@gmail.com (Vitalie S.) writes: I would expect the following to behave identically: tv - c(a=dsf, b=sss) tl - list(232) `$-`(tl, tv[[1]], sdfdsfdsfsd) Error: invalid subscript type 'language' tl$`tv[[1]]` - sdfdsfdsfsd tl [[1]] [1] 232 $`tv[[1]]` [1] sdfdsfdsfsd So

Re: [Rd] $- fails (invalid subscript type 'language')

2010-10-25 Thread Simon Urbanek
On Oct 25, 2010, at 3:51 AM, Vitalie S. wrote: Simon Urbanek simon.urba...@r-project.org writes: On Oct 24, 2010, at 4:21 PM, Vitalie S. wrote: David Winsemius dwinsem...@comcast.net writes: On Oct 24, 2010, at 5:35 AM, Vitalie S. wrote: This might be just beyond of my

[Rd] $- fails (invalid subscript type 'language')

2010-10-24 Thread Vitalie S.
This might be just beyond of my understanding of how assignment works in R, but the documentation does not say anything about: tv - c(a=dsf, b=sss) tl - list(232) `$-`(tl, tv[[1]], sdfdsfdsfsd) Error: invalid subscript type 'language' This happens even before the method is dispatched. I can

Re: [Rd] $- fails (invalid subscript type 'language')

2010-10-24 Thread Vitalie S.
spinuvit.l...@gmail.com (Vitalie S.) writes: This might be just beyond of my understanding of how assignment works in R, but the documentation does not say anything about: tv - c(a=dsf, b=sss) tl - list(232) `$-`(tl, tv[[1]], sdfdsfdsfsd) Error: invalid subscript type 'language' I can

Re: [Rd] $- fails (invalid subscript type 'language')

2010-10-24 Thread David Winsemius
On Oct 24, 2010, at 5:35 AM, Vitalie S. wrote: This might be just beyond of my understanding of how assignment works in R, but the documentation does not say anything about: tv - c(a=dsf, b=sss) tl - list(232) `$-`(tl, tv[[1]], sdfdsfdsfsd) Error: invalid subscript type 'language' Are

Re: [Rd] $- fails (invalid subscript type 'language')

2010-10-24 Thread Vitalie S.
David Winsemius dwinsem...@comcast.net writes: On Oct 24, 2010, at 5:35 AM, Vitalie S. wrote: This might be just beyond of my understanding of how assignment works in R, but the documentation does not say anything about: tv - c(a=dsf, b=sss) tl - list(232) `$-`(tl, tv[[1]],

Re: [Rd] $- fails (invalid subscript type 'language')

2010-10-24 Thread Simon Urbanek
On Oct 24, 2010, at 4:21 PM, Vitalie S. wrote: David Winsemius dwinsem...@comcast.net writes: On Oct 24, 2010, at 5:35 AM, Vitalie S. wrote: This might be just beyond of my understanding of how assignment works in R, but the documentation does not say anything about: tv - c(a=dsf,

Re: [Rd] $- fails (invalid subscript type 'language')

2010-10-24 Thread Peter Dalgaard
On 10/24/2010 10:21 PM, Vitalie S. wrote: David Winsemius dwinsem...@comcast.net writes: On Oct 24, 2010, at 5:35 AM, Vitalie S. wrote: This might be just beyond of my understanding of how assignment works in R, but the documentation does not say anything about: tv - c(a=dsf, b=sss)