transform_matrix.Rd
a helper function for 3*3 matrix
transform_matrix(a = 1, b = 0, c = 0, d = 0, e = 1, f = 0, g = 0, h = 0, i = 1)
a | 1st value of 3*3 matrix |
---|---|
b | 2nd value of 3*3 matrix |
c | 3rd value of 3*3 matrix |
d | 4th value of 3*3 matrix |
e | 5th value of 3*3 matrix |
f | 6th value of 3*3 matrix |
g | 7th value of 3*3 matrix |
h | 8th value of 3*3 matrix |
i | 9th value of 3*3 matrix |
a 3*3 matrix as follows: matrix( a, b, c d, e, f g, h, i )
transform_matrix(a = 2, e = 2, i = 2)#> [,1] [,2] [,3] #> [1,] 2 0 0 #> [2,] 0 2 0 #> [3,] 0 0 2