Re: [R] Proper Paste for Data Member

2009-07-15 Thread Greg Snow
The dollar sign ($) is a magical shortcut for the [[ subset operator (yes the doubling is intentional) for accessing parts of lists/data frames/etc. When you try to use magical shortcuts for purposes beyond what they were designed for, you get the computer equivalent of turning yourself into a

Re: [R] Proper Paste for Data Member

2009-07-14 Thread David Winsemius
On Jul 14, 2009, at 2:19 PM, David Winsemius wrote: On Jul 14, 2009, at 2:02 PM, Idgarad wrote: I imported a spreadsheet into a variable sh e.g. sh$, sh$, etc... doing the following: tsSource <- ts(paste("sh$",NAMEVARIABLE,sep="") ... ) From prior experience, my guess is that yo

Re: [R] Proper Paste for Data Member

2009-07-14 Thread David Winsemius
On Jul 14, 2009, at 2:02 PM, Idgarad wrote: I imported a spreadsheet into a variable sh e.g. sh$, sh$, etc... doing the following: tsSource <- ts(paste("sh$",NAMEVARIABLE,sep="") ... ) From prior experience, my guess is that you want collapse= rather than sep= fails. The past