from https://www.r-bloggers.com/2016/02/a-faster-scale-function/

colScale(
  x,
  center = TRUE,
  scale = TRUE,
  add_attr = TRUE,
  rows = NULL,
  cols = NULL
)

Arguments

x

a matrix

center

logical if true center column

scale

logical if true scale column

add_attr

logical https://www.r-bloggers.com/2016/02/a-faster-scale-function/

rows

logical https://www.r-bloggers.com/2016/02/a-faster-scale-function/

cols

logical https://www.r-bloggers.com/2016/02/a-faster-scale-function/