An example,
d <- data.frame(x1=rnorm(10),
x2=rnorm(10),
x3=rnorm(10))
cor(d) # get correlations (returns matrix)
More Related Contents:
- Matrix operation in R: I have a square matrix whose determinant is zero, i need to find its inverse in R programing. Is it possible ,if yes how? [closed]
- Convert an upper to lower triangle matrix in r [duplicate]
- R memory management / cannot allocate vector of size n Mb
- Side-by-side plots with ggplot2
- How to subset matrix to one column, maintain matrix data type, maintain row/column names?
- How to divide each row of a matrix by elements of a vector in R
- Subscript out of bounds – general definition and solution?
- Sankey Diagrams in R?
- Plot correlation matrix into a graph
- Apply a function to every row of a matrix or a data frame
- Change ggplot factor colors
- Create a matrix of scatterplots (pairs() equivalent) in ggplot2
- Create dataframe from a matrix
- Get row and column indices of matches using `which()`
- Finding row index containing maximum value using R
- use ggpairs to create this plot
- Function to split a matrix into sub-matrices in R
- Loop in R: how to save the outputs?
- Last Observation Carried Forward In a data frame? [duplicate]
- Should I use a data.frame or a matrix?
- Find K nearest neighbors, starting from a distance matrix
- Select rows of a matrix that meet a condition
- R: How to rescale my matrix by column
- Calculate Euclidean distance matrix using a big.matrix object
- Appending a list to a list of lists in R
- Sum a list of matrices [duplicate]
- How to remove rows of a matrix by row name, rather than numerical index?
- Spearman correlation and ties
- fast large matrix multiplication in R
- R: Calculate cosine distance from a term-document matrix with tm and proxy