Re: [R] Assigning & function to variable

2014-02-21 Thread Rainer M Krug
Prof Brian Ripley writes: > On 21/02/2014 10:07, Rainer M Krug wrote: >> Hi >> >> I want to assign the function & and | to a variable, because I want to >> specify as a function argument if inside the function & or | should be >> used. >> >>link <- & >> >> does not work, and >> >>link <-

Re: [R] Assigning & function to variable

2014-02-21 Thread Prof Brian Ripley
On 21/02/2014 10:07, Rainer M Krug wrote: Hi I want to assign the function & and | to a variable, because I want to specify as a function argument if inside the function & or | should be used. link <- & does not work, and link <- "&" results in the string "&" being assigned to link.

[R] Assigning & function to variable

2014-02-21 Thread Rainer M Krug
Hi I want to assign the function & and | to a variable, because I want to specify as a function argument if inside the function & or | should be used. link <- & does not work, and link <- "&" results in the string "&" being assigned to link. So how can I assign the logical function to th