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.16620711 -0.8131547  0.61575948 -0.33493205 -0.11683719
#>  [2,]  0.16620711  1.00000000 -0.1017779 -0.28227526 -0.12280489 -0.69807239
#>  [3,] -0.81315474 -0.10177789  1.0000000 -0.37518400  0.16724480  0.24837238
#>  [4,]  0.61575948 -0.28227526 -0.3751840  1.00000000 -0.30441692 -0.08505474
#>  [5,] -0.33493205 -0.12280489  0.1672448 -0.30441692  1.00000000  0.31606004
#>  [6,] -0.11683719 -0.69807239  0.2483724 -0.08505474  0.31606004  1.00000000
#>  [7,] -0.25438824  0.06612684  0.1753142 -0.36953253 -0.29526718  0.10431025
#>  [8,] -0.06386097  0.22412738  0.4751030  0.16334164 -0.02844134  0.06738725
#>  [9,]  0.36653910 -0.50689849 -0.1461906  0.65778248 -0.27050220  0.32750529
#> [10,]  0.11525415 -0.32583704 -0.1610563 -0.13885239 -0.48178336  0.43514813
#>              [,7]        [,8]        [,9]       [,10]
#>  [1,] -0.25438824 -0.06386097  0.36653910  0.11525415
#>  [2,]  0.06612684  0.22412738 -0.50689849 -0.32583704
#>  [3,]  0.17531418  0.47510298 -0.14619059 -0.16105627
#>  [4,] -0.36953253  0.16334164  0.65778248 -0.13885239
#>  [5,] -0.29526718 -0.02844134 -0.27050220 -0.48178336
#>  [6,]  0.10431025  0.06738725  0.32750529  0.43514813
#>  [7,]  1.00000000 -0.09626645 -0.45177865  0.69848177
#>  [8,] -0.09626645  1.00000000  0.27557036 -0.31735424
#>  [9,] -0.45177865  0.27557036  1.00000000  0.07936429
#> [10,]  0.69848177 -0.31735424  0.07936429  1.00000000