📜  在 r 中缩放 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:33.750000             🧑  作者: Mango

代码示例1
set.seed(1)
   x <- runif(7)

   # Manually scaling
   (x - mean(x)) / sd(x)

   scale(x, center = TRUE, scale = TRUE)