[R] List and Column Names in a Function?

2005-05-13 Thread khobson
In this simple function, how can I pass strings for index and column names to the function? I've posted this type of question before and received no response. Maybe this example will be easier to understand and troubleshoot. ds - function(myds, vec) {myds[[vec]]*2} ds1 - c(X=list(1:10),

Re: [R] List and Column Names in a Function?

2005-05-13 Thread Douglas Bates
[EMAIL PROTECTED] wrote: In this simple function, how can I pass strings for index and column names to the function? I've posted this type of question before and received no response. Maybe this example will be easier to understand and troubleshoot. ds - function(myds, vec)