Re: [R] passing columns of tables as a variable to functions

2010-03-16 Thread Phil Spector
Sacha - The "$" notation can only be used when you literally use the name of the column you want. If the name of the column is stored in a variable, you should use this notation: maptable[,value] to refer to the column whose name is stored in "value".

[R] passing columns of tables as a variable to functions

2010-03-16 Thread Sacha Viquerat
hello! ive come across the following problem: im writing a function to ease the production of maps. as my tables have headers, id like to include an option in my function header to pass these columns to use them inside the evaluation block. the function looks as follows: # maptable #the name