Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

deletediagonals

Delete diagonals


Description

Replace a diagonal of elements of a matrix with 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.

Details

Used for creating artifical missing values in matrices without causing any full row or column to be completely missing

Value

The original matrix with some values missing

Author(s)

Henning Redestig


pcaMethods

A collection of PCA methods

v1.82.0
GPL (>= 3)
Authors
Wolfram Stacklies, Henning Redestig, Kevin Wright
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.