myFunction <- function(arg1, arg2){ X <- arg1 + arg2 result <- sqrt(X) return(result) } # executing the function a <- myFunction(arg1 = 8, arg2 = 10) a
[1] 4.242641