conig / corx

corx: Create and Format Correlation Matrices
Other
4 stars 0 forks source link

Can't even handle a labelled numeric! C'monnnn!!! ;) #3

Closed mnoetel closed 3 years ago

mnoetel commented 3 years ago

Hmisc::label(iris$Sepal.Length) <- "a label" corx(iris[, 1:4]) Error: All classes must be numeric. [1] 'Sepal.Length' <lbl,nmr>.

conig commented 3 years ago

You know how to work me @mnoetel...

remotes::install_github("conig/corx@devel")

Hmisc::label(iris$Sepal.Length) <- "a label"
corx::corx(iris[, 1:4])                      
#> corx::corx(data = iris[, 1:4])
#> 
#> --------------------------------------------------------------
#>              Sepal.Length Sepal.Width Petal.Length Petal.Width
#> --------------------------------------------------------------
#> Sepal.Length           -         -.12         .87*        .82*
#> Sepal.Width          -.12          -         -.43*       -.37*
#> Petal.Length         .87*       -.43*           -         .96*
#> Petal.Width          .82*       -.37*         .96*          - 
#> --------------------------------------------------------------
#> Note. * p < 0.05
mnoetel commented 3 years ago

You're too good