Replace a diagonal of elements of a matrix with NA
取代NA对角线矩阵的元素
用法----------Usage----------
deletediagonals(x, diagonals=1)
参数----------Arguments----------
参数:x
The matrix
矩阵
参数:diagonals
The diagonal to be replaced, i.e. the first, second and so on when looking at the fat version of the matrix (transposed or not) counting from the bottom. Can be a vector to delete more than one diagonal. </table>
被替换的对角线,即第一,第二,因此,在矩阵(或调换)从底部算起的脂肪版本。可以是一个向量删除一条对角线以上。 </ TABLE>
Details
详情----------Details----------
Used for creating artifical missing values in matrices without
用于创建无人工失踪矩阵值
值----------Value----------
The original matrix with some values missing
原有的一些缺失值矩阵