Hello,
in some R sessions, method dispatch for objects of the (S4) class “lavaan"
fail. An example from such a “bad” session:
> library(lavaan)
> HS.model <- ' visual =~ x1 + x2 + x3
+ textual =~ x4 + x5 + x6
+ speed =~ x7 + x8 + x9 '
> fit <- cfa(HS.model, data =
I would like to thank all those who wrote helpful and interesting
replies to my question. I could have saved myself the time for writing
it up had I simply read ?as.integer. However, under the circumstances in
which I first encountered as.integer's truncating behaviour this was not
so obvious becau
I have encountered a strange behaviour of as.integer() which does not
seem correct to me. Sorry if this is just an indication of me not
understanding floating point arithmetic.
> .57 * 100
[1] 57
> .29 * 100
[1] 29
So far, so good. But:
> as.integer(.57 * 100)
[1] 56
> as.integer(.29 * 100)
[1]
3 matches
Mail list logo