Re: [R] abbreviate function using 'with'

2014-02-13 Thread e-letter
On 13/02/2014, Rolf Turner wrote: > > What you've written is simply not (anything like!) R syntax. You should > learn to speak R if you are going to use R. > Agree; was reviewing the help text examples invoked by '?with'. > In this particular instance > > testsum <- sum(testcsv[2,2:4]) >

Re: [R] abbreviate function using 'with'

2014-02-13 Thread Rolf Turner
On 14/02/14 10:46, e-letter wrote: Readers, A csv file was created: column1,column2,column3,column4 1,10,3,2 2,20,6,4 3,30,12,16 4,40,24,256 The csv was imported: testcsv<-read.csv('/path/to/test.csv') testsum<-testcsv[2,2]+testcsv[2,3]+testcsv[2,4] What is the correct syntax to abbreviate

[R] abbreviate function using 'with'

2014-02-13 Thread e-letter
Readers, A csv file was created: column1,column2,column3,column4 1,10,3,2 2,20,6,4 3,30,12,16 4,40,24,256 The csv was imported: testcsv<-read.csv('/path/to/test.csv') testsum<-testcsv[2,2]+testcsv[2,3]+testcsv[2,4] What is the correct syntax to abbreviate the following command using the functi