Report question

Question: R: applying function over matrix and keeping matrix dimensions