Hi,
On Thu, Aug 22, 2013 at 9:49 PM, Jeff Newmiller
wrote:
> Please don't post in HTML format... it messes with code examples.
>
> Use character indexing (please read the Introduction to R... again if
> necessary).
>
> myf <- function(df, colname){
> df[ ,colname ]
> }
Or df[[colname]] for da
Please don't post in HTML format... it messes with code examples.
Use character indexing (please read the Introduction to R... again if
necessary).
myf <- function(df, colname){
df[ ,colname ]
}
colname <- "a"
myf(m,colname)
Until you learn simple R syntax, I strongly recommend avoiding wri
2 matches
Mail list logo