Is there a way in R to have a variable evaluated as a column name when creating a data frame (or in similar situations like using cbind)?
For example
> d <- setNames( data.frame(a=1:10), a) > d mycol 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10