Displaying 1 result from an estimated 1 matches for "bportugal".
Did you mean:
portugal
2003 Sep 12
2
Converting character to function argument
How can one transform a character string into an argument of a function
(which is not or I don't want it to be a character string)?
Example:
> expand.grid(c(1,0),c(1,0)) ## OK
Var1 Var2
1 1 1
2 0 1
3 1 0
4 0 0
> paste(rep("c(0,1)",2),collapse=',') ## to be used below
[1] "c(0,1),c(0,1)"
> ## string is the input I want, but it