Skip to content

Instantly share code, notes, and snippets.

@Ewen2015
Created May 3, 2016 08:24
Show Gist options
  • Save Ewen2015/cfc9cda331121ca7fbd207275d31e9d8 to your computer and use it in GitHub Desktop.
Save Ewen2015/cfc9cda331121ca7fbd207275d31e9d8 to your computer and use it in GitHub Desktop.
require(caret)
trans = preProcess(X, c("BoxCox", "center", "scale"))
predictorsTrans = data.frame(trans = predict(trans, X))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment