Categories

May 27, 2019 in Data Handling

Q: For a given matrix mat, how do you increment every element of the matrix by 3 and return a vector. (I) sapply(mat, function(x,y) sum(x)+y,y=3) (II) sapply(mat, function(x) sum(x)+3)

1 Answer

May 27, 2019

answer is I & II

Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

Madanswer
Jun 7, 2019 in Data Handling using R
May 27, 2019 in Data Handling
Jun 6, 2019 in Data Handling using R
...