Squish matrix values into range

clip(m, range = c(-3, 3))

Arguments

m

matrix to manipulate

range

numeric vector of length two giving desired output range. Default: c(-3, 3)