Nothing
Code
distData <- classDist(iris[trainSet, 1:4], iris$Species[trainSet])
Condition
Error in `FUN()`:
! there must be more rows than columns for this class
Code
print(classDist(x, y, pca = FALSE))
Output
Call:
classDist.default(x = x, y = y, pca = FALSE)
# predictors variables: 4
# samples: 30 (setosa), 30 (versicolor), 30 (virginica)
Code
print(classDist(x, y, pca = TRUE))
Output
Call:
classDist.default(x = x, y = y, pca = TRUE)
PCA applied, 4 components retained
# predictors variables: 4
# samples: 30 (setosa), 30 (versicolor), 30 (virginica)
Code
print(classDist(x, y, pca = FALSE, groups = 3))
Output
Call:
classDist.default(x = x, y = y, groups = 3, pca = FALSE)
Classes based on 2 cuts of the data
# predictors variables: 4
# samples: 30 [1,1.67], 30 (1.67,2.33], 30 (2.33,3]
Code
classDist(x, y)
Condition
Error in `FUN()`:
! there must be more rows than columns for this class
Code
classDist(x, y)
Condition
Error in `FUN()`:
! Cannot invert the covariance matrix
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.