Re: [R] Proper Paste for Data Member

2009-07-15 Thread Greg Snow
Intermountain Healthcare greg.s...@imail.org 801.408.8111 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- project.org] On Behalf Of Idgarad Sent: Tuesday, July 14, 2009 12:02 PM To: r-help@r-project.org Subject: [R] Proper Paste for Data Member I

[R] Proper Paste for Data Member

2009-07-14 Thread Idgarad
I imported a spreadsheet into a variable sh e.g. sh$, sh$, etc... doing the following: tsSource - ts(paste(sh$,NAMEVARIABLE,sep=) ... ) fails. The paste isn't evaluating properly. What is the proper way to concatenate a data source with a member name such that they evaluate properly.

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 paste

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 you