I have func1 and func2
I want to test whether I have put in func1 or func2 into another function Fas an argument
F<-function(FUN){
if(FUN==func1){
#do this
}else if(FUN==func2){
#do this
}else{
#do this
}
}
Is there a way for me to check FUN==func1 or FUN==func2 so that it returns a logical TRUE or FALSE? This is obviously wrong because == cannot be used to test for function names