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

2015-02-26 Thread David Winsemius
> On Feb 26, 2015, at 2:02 PM, Scott Colwell wrote: > > 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? > `all.equ

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

2015-02-26 Thread Scott Colwell
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-Rela

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

2015-02-26 Thread Scott Colwell
Hello, Does anyone know how to save the numeric value of the "mean relative difference" when using the all.equal() command? For example this: all.equal(cov2cor(ITEMCOV),cor(item.data)) Gives: [1] "Attributes: < Length mismatch: comparison on first 1 components >" [2] "Mean relative difference