boxcox_t=function(vector){
library(forecast)
# to find optimal lambda
lambda = BoxCox.lambda(vector )
# now to transform vector
T_box = BoxCox(vector, lambda)
return(T_box)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.