Description Usage Arguments Author(s) See Also Examples
View source: R/revalueMatrix.R
A convenience function to create a matrix of the same size as the provided one, just with new values.
1 | revalueMatrix(x, values = NA, byrow = FALSE, dimnames = NULL)
|
x |
An old matrix. |
values |
The new values for matrix |
byrow |
logical. If |
dimnames |
A |
Vilmantas Gegzna
Other matrix operations in spMisc:
corr_vec2mat()
,
indMatrix()
,
nTri2nDiag()
,
sort_matrix_elements
,
which.in()
,
which.max.all()
,
which.max.perRow()
1 2 3 4 | x <- matrix(NA, 2, 5)
x
revalueMatrix(x, 1:10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.