Write functions案例 Project 2: Write functions to do the following: Write functions案例 You need to write your r codes,not to use the existing r functions.You may use the existing r function to check...