ifelse error; how to label answers as right or wrong


whenever I use the function ifelse there is an eroor saying argument "no" is missing with no default. Do you have an idea how to fix that?

Thank you!

at the end of your expression is missing the "no" argument.

1 Like

Set NA as the default value for your nested ifelse() commands

self.komplett$iri1 <- ifelse(self.komplett$VC01_01 == 5,
                             "1" ,
                             ifelse(self.komplett$VC01_01 != 5,

If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.