karoliskoncevicius / matrixTests

R package for computing multiple hypothesis tests on rows/columns of a matrix or a data.frame
https://cran.r-project.org/web/packages/matrixTests/index.html
36 stars 5 forks source link

Implement proper column versions #6

Open karoliskoncevicius opened 5 years ago

karoliskoncevicius commented 5 years ago

Currently the col versions of all tests transpose the inputs and call row functions.

This behaviour is undesirable because of at least three reasons:

  1. Transposing inputs takes time.
  2. col-wise functions (like colMeans) are typically faster than their row equivalents
  3. When inputs have different lengths the functions might throw a warning about rows.