How to create function in R

1 Answer

0 votes
add = function(a, b) {
    return (a + b)
}

print(add(4, 9))




# run:
#
# [1] 13
#

 



answered Jun 30, 2021 by avibootz

Related questions

2 answers 216 views
2 answers 194 views
194 views asked Dec 11, 2022 by avibootz
2 answers 293 views
1 answer 231 views
1 answer 241 views
1 answer 276 views
1 answer 246 views
...