Last chance! 50% off unlimited learning
Sale ends in
object
is replaced
by value
. If the original matrix had row and/or column names,
the corresponding names for value
can either be NULL
, or
a permutation of the original names.## S3 method for class 'pdMat':
matrix(object) <- value
pdMat
object similar to object
, but with its
coefficients modified to produce the matrix in value
.pdMat
,"matrix<-"
pd1 <- pdSymm(diag(3))
matrix(pd1) <- diag(1:3)
pd1
Run the code above in your browser using DataLab