Skip to contents

Center points (subtract column means)

Usage

center_points(values)

Arguments

values

Numeric matrix

Examples

pts <- matrix(c(1, 2, 3, 10, 20, 30), ncol = 2)
center_points(pts)  # column means are now 0
#>      [,1] [,2]
#> [1,]   -1  -10
#> [2,]    0    0
#> [3,]    1   10