Dear R developers,
Would it be possible to make `factanal` to also accept functions and
not just function names for its `rotation` parameter? If I understand
correctly, `do.call` also supports this.
Best greetings,
Stefan
Index: src/library/stats/R/factanal.R
===================================================================
--- src/library/stats/R/factanal.R (revision 87038)
+++ src/library/stats/R/factanal.R (working copy)
@@ -137,7 +137,7 @@
"unable to optimize from these starting values"),
domain = NA)
load <- fit$loadings
- if(rotation != "none") {
+ if(rotation != "none" || is.function(rotation)) {
rot <- do.call(rotation, c(list(load), cn$rotate))
load <- if (is.list(rot)) {
load <- rot$loadings
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel