powered by
rescale(x, FUN = "center")
x
x <- sample(10) rescale(x) # centering rescale(x, FUN=="full") rescale(x, FUN=="-0.5,0.5") # for binary input rescale(x, FUN=="0/1") # for binary input
Run the code above in your browser using DataLab