• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in Data Handling by
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

0 votes
by

answer is I & II

Related questions

0 votes
asked Jun 7, 2019 in Data Handling using R by tempuser
0 votes
asked May 27, 2019 in Data Handling by tempuser
...