if I have a matrix that is including variables as entries, how can I obtain the determinant? It does not seem like R can handle non-numeric entries in matrices in calculations.
for ex.
z <- matrix(c(1,1,1,"d"),nrow = 2)
then I would want the answer to be like det(z)=d-1 i.e in as a polynomial including the variable d. is this possible with the "det" function in r?