Skip to contents

cor_flex

Usage

cor_flex(x, ...)

Arguments

x

data to use

...

other arguments passed to stats::cor()

Value

numeric

Examples

m <- matrix(rnorm(100), nrow = 10)

cor_flex(m)
#>              [,1]        [,2]        [,3]       [,4]        [,5]        [,6]
#>  [1,]  1.00000000 -0.49996422 -0.15412539 -0.2555132 -0.02495745 -0.62819874
#>  [2,] -0.49996422  1.00000000 -0.01320777  0.2802579  0.24563532  0.52242562
#>  [3,] -0.15412539 -0.01320777  1.00000000 -0.5941230  0.11574913 -0.04534713
#>  [4,] -0.25551321  0.28025794 -0.59412302  1.0000000 -0.40242003 -0.07576250
#>  [5,] -0.02495745  0.24563532  0.11574913 -0.4024200  1.00000000  0.26987400
#>  [6,] -0.62819874  0.52242562 -0.04534713 -0.0757625  0.26987400  1.00000000
#>  [7,] -0.13091308 -0.03068926  0.07516804  0.3323659 -0.48089458 -0.36740301
#>  [8,] -0.71940059  0.21321855 -0.09276858  0.1591824  0.35688874  0.41203065
#>  [9,]  0.23525991 -0.05679496  0.54877026 -0.2456170 -0.11807154 -0.21431508
#> [10,] -0.35658933 -0.31986538  0.18292679  0.2123524 -0.31481707  0.10265917
#>              [,7]        [,8]        [,9]      [,10]
#>  [1,] -0.13091308 -0.71940059  0.23525991 -0.3565893
#>  [2,] -0.03068926  0.21321855 -0.05679496 -0.3198654
#>  [3,]  0.07516804 -0.09276858  0.54877026  0.1829268
#>  [4,]  0.33236591  0.15918238 -0.24561704  0.2123524
#>  [5,] -0.48089458  0.35688874 -0.11807154 -0.3148171
#>  [6,] -0.36740301  0.41203065 -0.21431508  0.1026592
#>  [7,]  1.00000000 -0.08656264  0.22743706  0.4063733
#>  [8,] -0.08656264  1.00000000 -0.64421000  0.2922089
#>  [9,]  0.22743706 -0.64421000  1.00000000  0.1287409
#> [10,]  0.40637330  0.29220892  0.12874094  1.0000000