YouTip LogoYouTip

R Func Scale

# R scale() Function - Data Standardization [![Image 3: R Examples](https://example.com/images/up.gif) R Examples](https://example.com/r/r-examples.html) The R scale() function is used for data standardization (z-score standardization). After standardization, the data has a mean of 0 and standard deviation of 1, commonly used to eliminate the impact of different scales. The scale() function syntax is as follows: scale(x, center = TRUE, scale = TRUE) **Parameter Description:** * **x** Input numeric matrix or data frame. * **center** Whether to center (subtract mean), default is
← R Func SdR Func Sample β†’