Hello,
 
I tried to use a variable to refer colname, but I got error, could anyone give me advice?
 
>df=data.frame(cbind(AB=1:3,AC=3:5))
> df$AC
[1] 3 4 5
> df$paste("A","C",sep="")
Error: attempt to apply non-function

thanks
Jian
 


      
	[[alternative HTML version deleted]]

