Displaying 2 results from an estimated 2 matches for "myfunction2v".
Did you mean:
  myfunction2
  
2017 Jun 06
3
Force argument to have quotes
...t;- function(arg1, arg2, arg3 = c('Hello', 'Goodbye')){
	arg3 <- match.arg(arg3)
	result <- arg1 + arg2
	cat(arg3, result, '\n')
	}
	
	
myFunction2 <- function(arg1, arg2){
	result <- arg1 * arg2
	result
	}
### Working Example. 
### myFunction2 works no problem
myFunction2Vals <- subset(scoreConfig, Function == 'myFunction2')
myOptions <- with(myFunction2Vals, paste(Argument, Value, sep = '=', collapse = ','))
eval(parse(text = paste( "myFunction2(", myOptions, ")" )))
### myFunction1 fails 
myFunction1Vals <- sub...
2017 Jun 06
0
Force argument to have quotes
...result <- arg1 + arg2
>         cat(arg3, result, '\n')
>         }
>
>
> myFunction2 <- function(arg1, arg2){
>         result <- arg1 * arg2
>         result
>         }
>
>
> ### Working Example.
> ### myFunction2 works no problem
> myFunction2Vals <- subset(scoreConfig, Function == 'myFunction2')
> myOptions <- with(myFunction2Vals, paste(Argument, Value, sep = '=', collapse = ','))
> eval(parse(text = paste( "myFunction2(", myOptions, ")" )))
>
>
> ### myFunction1 fails
>...