Displaying 1 result from an estimated 1 matches for "string_with_column".
Did you mean:
string_with_columns
2009 May 14
2
Function to read a string as the variables as opposed to taking the string name as the variable
...kage: cast. However, my question could be applicable to
any R function.
Normally one writes the arguments directly into a function, e.g.:
result=cast(table1, column1 + column2 + column3 ~ column4,
mean) (1)
I need to be able to write this statement as follows:
result=cast(table1, string_with_columns ~ column4, mean) (2)
string_with_columns = group of functions that ultimately outputs:
"column1 + column2 + column3"
Statement 1 outputs the correct results because I have manually typed
in the column names I want to use. However, statement 2 thinks that
'string'...