Summary( ) Quesition
Hello,
I have a problem when trying to call Summary(). I have a string containing the names of the columns that I want to create a summary table for, say var="height, weight". var may be different from data table to data table. I tried summary(sum(var)), but it didn't work. I wrote a loop that create a string var_expr=":height, :weight", but
summary(substitute("sum(x)",expr(x),var_expr)) doesn't do the job either...
Maybe I need to use column reference, but first I don't want to create many global variables, second I don't know in a priori how many columns are there. Is there any easy way to get around this?
Thank you!