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.28099280 -0.6867656  0.42283126 -0.38987371 -0.07468685
#>  [2,]  0.28099280  1.00000000 -0.1659979 -0.51534964 -0.04087937 -0.59687113
#>  [3,] -0.68676564 -0.16599789  1.0000000 -0.48483005  0.23503091  0.37132983
#>  [4,]  0.42283126 -0.51534964 -0.4848301  1.00000000 -0.15473094  0.04134032
#>  [5,] -0.38987371 -0.04087937  0.2350309 -0.15473094  1.00000000  0.19145228
#>  [6,] -0.07468685 -0.59687113  0.3713298  0.04134032  0.19145228  1.00000000
#>  [7,]  0.17213620  0.19751817  0.1650136 -0.50007590 -0.30859664  0.18060348
#>  [8,]  0.11188918  0.05397874  0.4688130 -0.20095484  0.20343973  0.51007047
#>  [9,]  0.15068347 -0.65991342 -0.2022737  0.67766661 -0.15672350  0.39082372
#> [10,] -0.07803746 -0.34887195 -0.1485405  0.02694660 -0.47862493  0.34358459
#>              [,7]        [,8]        [,9]       [,10]
#>  [1,]  0.17213620  0.11188918  0.15068347 -0.07803746
#>  [2,]  0.19751817  0.05397874 -0.65991342 -0.34887195
#>  [3,]  0.16501365  0.46881300 -0.20227374 -0.14854052
#>  [4,] -0.50007590 -0.20095484  0.67766661  0.02694660
#>  [5,] -0.30859664  0.20343973 -0.15672350 -0.47862493
#>  [6,]  0.18060348  0.51007047  0.39082372  0.34358459
#>  [7,]  1.00000000  0.08919887 -0.55902381  0.24693050
#>  [8,]  0.08919887  1.00000000  0.06649927 -0.36539126
#>  [9,] -0.55902381  0.06649927  1.00000000  0.22054868
#> [10,]  0.24693050 -0.36539126  0.22054868  1.00000000