Re: [R] Unexpected behavior with abbreviation of an argument to paste

2013-01-27 Thread David Winsemius
On Jan 27, 2013, at 4:10 PM, Dennis Fisher wrote: R 2.15.1 OS X Colleagues, I encountered the following unexpected behavior today: The following command yielded the expected result: paste(c("TEXT1", "TEXT2"), collapse="|") Result: [1] "TEXT1|TEXT2" However, abbreviating "col

Re: [R] Unexpected behavior with abbreviation of an argument to paste

2013-01-27 Thread Mark Leeds
Hi Dennis: One of function argument matching rules in R that arguments after the dotdotdot have to be matched exactly ( see code for paste below ) so that's why your attempt doesn't work. But I would have been surprised also so I'm not trying to imply that one should know which functions have arg

[R] Unexpected behavior with abbreviation of an argument to paste

2013-01-27 Thread Dennis Fisher
R 2.15.1 OS X Colleagues, I encountered the following unexpected behavior today: The following command yielded the expected result: paste(c("TEXT1", "TEXT2"), collapse="|") Result: [1] "TEXT1|TEXT2" However, abbreviating "collapse" by even one character: paste(c("TEXT1",