Hello,
My code looks something like this:
f1 <- function (a,b,c){
if (b==0){
result <- some computing involving (a,b)
} else {
result <-some computing involving (a,b,c)
}
}
For the cases in which b==0, I don't need c paramether and this gives me unused argument error. How should I deal with it? Thank you all