Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
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)
Home
Data Handling
For a given matrix mat, how do you increment every element of the matrix by 3 and return a vector....
asked
May 27, 2019
in
Data Handling
by
tempuser
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)
#datahandling
DataHandling-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
May 27, 2019
by
tempuser
answer is I & II
...