Zahra—
Since := is an operator within your lavaan model syntax, R must think the operator is sitting outside your syntax. Could you share your R transcript? My first guess is that you have a misplaced tic mark (‘), leading R to exclude the line containing := from your syntax string. That, or some other typo.
Remember, you must have lavaan installed AND have the package loaded. But if that were the issue, R would be complaining about the lavaan or sem or cfa function, not about characters within your syntax string.
--Ed Rigdon
--
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+un...@googlegroups.com.
To post to this group, send email to lav...@googlegroups.com.
Visit this group at http://groups.google.com/group/lavaan.
For more options, visit https://groups.google.com/d/optout.
products[is.na(promotion_description), promotion_description := "no_promo"]Error in `:=`(promotion_description, "no_promo") :could not find function ":="
I am getting this error what should i do?
?lavaanify
?Comparison
--
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+un...@googlegroups.com.
To post to this group, send email to lav...@googlegroups.com.
Visit this group at https://groups.google.com/group/lavaan.