[R] Saving Mean Relative Difference from all.equal()

Scott Colwell scolwell at uoguelph.ca
Thu Feb 26 20:02:23 CET 2015


I think I have one solution. Not very pretty though. Relies on the text not
changing at all.

as.numeric(gsub("Mean relative difference: ", "",
all.equal(cov2cor(ITEMCOV),cor(item.data))[2]))

Is there a better way?



--
View this message in context: http://r.789695.n4.nabble.com/Saving-Mean-Relative-Difference-from-all-equal-tp4703905p4703908.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list