# Tag Archives: R Matrix-Programs

In this article, we will see how to fill a matrix with a loop in R Programming Language. To create a matrix in R you… Read More
In this article, we will see how to extract diagonal elements of a matrix in R Programming Language without using diag() function. Matrix is a… Read More
In this article, we will create two matrices with 2 rows and 3 columns each, then add, subtract, multiply and divide these two matrices in… Read More
In this article, we will Transpose a Matrix without using t() function in R Programming Language. Transpose of a matrix is an operation in which… Read More
In this article, we will discuss how to set the diagonal elements of a Matrix to 1 in R Programming Language. Matrix is a rectangular… Read More
In this article, we will discuss how to create an Identity Matrix in R Programming Language. Identity matrices are the matrices that contain all the… Read More
In this article, we are going to see how to evaluate subset dataframe and matrices by row name.  Method 1: Subset dataframe by row names… Read More
In this article, we will discuss how to sort a matrix according to the first column in R programming language. Matrix in use: We can… Read More
Sparse matrices are in column-oriented format and they contain mostly null values. The elements in the sparse matrix which are non-null are arranged in ascending… Read More
In this article, we are going to convert the given matrix into the vector in R programming language. Conversion of the matrix to vector by… Read More
In this article, we will discuss how to extract values from the matrix by column and row names in R Programming Language. Extracting values from… Read More
The singular power operation can be performed on square matrices itself, where the specified power is applied to each element of the matrix. Base R… Read More
In this article, we will discuss how to find the indices of non-zero elements in Matrix in R Programing Language. Method 1: Using for loop… Read More
In this article, we will discuss how to divide each row of the matrix by vector elements in R Programming Language. Method 1: Using standard… Read More
In this article, we will discuss hw to create a matrix with random values in the R programming language. The functions which are used to… Read More