Learn R Programming

faux (version 1.2.1)

cormat_from_triangle: Make Correlation Matrix from Triangle

Description

cormat_from_triangle makes a correlation matrix from a vector of the upper right triangle

Usage

cormat_from_triangle(cors)

Value

matrix

Arguments

cors

the correlations among the variables as a vars\*(vars-1)/2 vector

Examples

Run this code
cormat_from_triangle(c(.2, .3, .4, 
                           .5, .6, 
                               .7))

Run the code above in your browser using DataLab