1. Please use R-programing to write the following code. Pleaseshow all steps, and outputs. Please also share you code and aswerall questions given in the format below.
Aswer in the format given below.
“`{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
“`
## Functions in R
### Debugging a function
a. In this problem, we will debug a function to compute the meanof each column of a matrix. We’ll start by creating a *test suite*,a set of inputs where we know what the function should return, ifit’s working correctly.
Use the following code to create matrices to help you test thefunction.
“`{r}
test1 = matrix(1:9, nr = 3, nc = 3)
test2 =
PayPal Gateway not configured
PayPal Gateway not configured