[R] esoteric inconsistency -- intended or not?

2008-11-07 Thread Bert Gunter
Is the following intended or not? func- function(y) match.call() z - func(y =2) z func(y = 2) z[[a]] - 5 z func(y = 2, 5) ## Note that the second argument **is not** named ## BUT... z - func(y =2) z$a - 5 z func(y = 2, a = 5) ## The second argument **is** named ### End of

Re: [R] esoteric inconsistency -- intended or not?

2008-11-07 Thread Felix Andrews
2008/11/8 Bert Gunter [EMAIL PROTECTED]: Is the following intended or not? func- function(y) match.call() z - func(y =2) z func(y = 2) z[[a]] - 5 z func(y = 2, 5) ## Note that the second argument **is not** named ## BUT... z - func(y =2) z$a - 5 z func(y = 2, a = 5) ## The