Nothing
Code
preProcess(rng_dat1, "range", rangeBounds = "")
Condition
Error in `preProcess.default()`:
! 'rangeBounds' should be a two-element numeric vector
Code
preProcess(rng_dat1, "range", rangeBounds = c(0.4, -0.7))
Condition
Error in `preProcess.default()`:
! 'rangeBounds' interval is empty
Code
print(preProcess(x, method = c("center", "scale")))
Output
Created from 10 samples and 4 variables
Pre-processing:
- centered (4)
- ignored (0)
- scaled (4)
Code
pp <- preProcess(dat, method = "YeoJohnson", verbose = TRUE)
Output
all of the transformations failed
Expo. transform induced infinite values in several predictors and is ommitted: big
Std. deviations could not be computed for: empty
Code
pp <- preProcess(dat, method = "bagImpute", verbose = TRUE)
Output
Computing bagging models for 3 predictors... done
Code
pp <- preProcess(dat, method = "medianImpute", verbose = TRUE)
Output
Computing medians for 3 predictors... done
Code
pp <- preProcess(dat, method = "range", verbose = TRUE)
Output
Calculating 3 statistcs for scaling to a range
Code
pp <- preProcess(dat, method = "ica", n.comp = 2, verbose = TRUE)
Output
Calculating 4 means for centering
Calculating 4 standard deviations for scaling
Computing ICA loadings for 4 predictors
Code
predict(pp, dat)
Condition
Error in `predict.preProcess()`:
! All predctors were removed as determined by `preProcess`
correlation matrix could not be computed:
Error in cor(x[, !(colnames(x) %in% c(method$ignore, method$remove)), :
'x' is empty
Code
predict(pp, all_missing)
Condition
Error in `FUN()`:
! cannot impute when all predictors are missing in the new data point
Code
print(pp)
Output
Created from 30 samples and 3 variables
Pre-processing:
- centered (3)
- ignored (0)
- principal component signal extraction (3)
- scaled (3)
- spatial sign transformation (2)
PCA used 2 components as specified and will be used in the spatial sign transformation
Code
print(pp)
Output
Created from 30 samples and 3 variables
Pre-processing:
- centered (3)
- independent component signal extraction (3)
- ignored (0)
- scaled (3)
- spatial sign transformation (2)
ICA used 2 components and will be used in the spatial sign transformation
Code
print(pp)
Output
Created from 30 samples and 2 variables
Pre-processing:
- Box-Cox transformation (2)
- ignored (0)
Lambda estimates for Box-Cox transformation:
0.3 (#NA: 1)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.