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