Skip to content

Tag Archives: R Matrix-Function

In R programming, a matrix can be scaled and centred using scale() function. But, there is no in-built function to transform the scaled matrix back… Read More
scale() function in R Langauge is a generic function which centers and scales the columns of a numeric matrix. The center parameter takes either numeric… Read More
na.omit() function in R Language is used to omit all unnecessary cases from data frame, matrix or vector. Syntax: na.omit(data) Parameter: data: Set of specified… Read More
is.unsorted() function in R Language is used to check if an object is sorted or not. It returns False if the object is sorted otherwise… Read More
is.table() function in R Language is used to check if an object is a table. Syntax: is.table(x) Parameters: x: Object to be checked Example 1:… Read More
as.table() function in R Language is used to convert an object into a table. Syntax: as.table(x) Parameters: x: Object to be converted Example 1: #… Read More
table() function in R Language is used to create a categorical representation of data with variable name and the frequency in the form of a… Read More
sapply() function in R Language takes list, vector or data frame as input and gives output in vector or matrix. It is useful for operations… Read More
eigen() function in R Language is used to calculate eigenvalues and eigenvectors of a matrix. Eigenvalue is the factor by which a eigenvector is scaled.… Read More
inv() function in R Language is used to calculate inverse of a matrix. Note: Determinant of the matrix must not be zero Syntax: inv(x) Parameters:… Read More
tr() function in R Language is used to calculate the trace of a matrix. Trace of a matrix is the sum of the values on… Read More
In R programming, coercion function c() and combine() function are similar to each other but are different in a way. combine() functions acts like c()… Read More
rev() function in R Language is used to return the reverse version of data objects. The data objects can be defined as Vectors, Data Frames… Read More
as.matrix() function in R Language is used to convert an object into a Matrix. Syntax: as.matrix(x) Parameters: x: Object to be converted Example 1: #… Read More
is.complex() function in R Language is used to check if the object passed to it as argument is of complex data type. Syntax: is.complex(x) Parameters:… Read More