A vector contains the following numerical data after prime factorization of a certain number x:
c <- c(2,2,2,3)
This is the prime factorization of 24
The first column of the matrix should contain the prime factors 2 and 3 The second column should contain the power of the prime factors.
e.g.
| 2 3 |
| 3 1 |
How would I go about creating this matrix.