Displaying 1 result from an estimated 1 matches for "mylongfunc".
2012 Aug 17
5
specific matrix element tranformation
Hi guys,
I am trying to write a function that allows me to perform specific
transformations to each element of
a 2 by 2 matrix to generate a 3 by 3 matrix.
Input into function-2 by 2 matrix
Output from function -3 by 3 matrix
For example:
# a is my original 2 by 2 matrix
#b is my new 3 by 3 matrix
set.seed(2)
a=matrix(rnorm(4),ncol=2)
#let's say these are the transformations i wish to