R

Write a user-defined function in R

How to write a user-defined function in R.