Re: [R] creating a variable using concatenation

2010-03-30 Thread David Winsemius
On Mar 30, 2010, at 11:15 PM, Steve Chen wrote: You can try this: library(tutoR) That's an interesting set of goals: "Package to mask common functions so that inputs in error are explained and able to be corrected, prior to execution. 'assist' offers step-by-step assistance to correctly

Re: [R] creating a variable using concatenation

2010-03-30 Thread Steve Chen
You can try this: library(tutoR) plot(eval.string(toplot)) Steve Chen On 2010/3/31 上午 09:24, zubin wrote: > A general problem i run into, i know there must be a simple solution. > > I like to create a variable by appending a 1 for example, (i need to > loop later on from 1 to X, thus the reaso

Re: [R] creating a variable using concatenation

2010-03-30 Thread zubin
Perfect - this works!! -zubin Peter Alspach wrote: > Tena koe Zubin > > Would this work for your application: > > toPlot <- paste("X",i,sep="") > plot(x[, toPlot]) > > HTH > > Peter Alspach > > >> -Original Message- >> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- >

Re: [R] creating a variable using concatenation

2010-03-30 Thread David Winsemius
On Mar 30, 2010, at 9:24 PM, zubin wrote: A general problem i run into, i know there must be a simple solution. I like to create a variable by appending a 1 for example, (i need to loop later on from 1 to X, thus the reason for this). So i assign the variable vplot with this value, however

Re: [R] creating a variable using concatenation

2010-03-30 Thread Peter Alspach
Tena koe Zubin Would this work for your application: toPlot <- paste("X",i,sep="") plot(x[, toPlot]) HTH Peter Alspach > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of zubin > Sent: Wednesday, 31 March 2010 2:25 p.m. >