nsh87 / receptormarker

Source for 'receptormarker' package for R: antibody receptor and phenotypic marker analysis
http://receptormarker.com
BSD 2-Clause "Simplified" License
4 stars 9 forks source link

Fix falsely reporting some numbers as not positive in pca_plot #29

Closed nsh87 closed 9 years ago

nsh87 commented 9 years ago

The arg validation was only checking for "numeric" not "integer". So this was happening:

> pca_plot(iris[, 1:4], iris_cluster, num_clust=iris_cluster[['k_best']])
Error: The argument 'num_clust' must be a positive integer