Not reproducible. Posted HTML. On May 19, 2022 2:30:58 PM PDT, Neha gupta <neha.bologn...@gmail.com> wrote: >Why do I get the following error when my variable in the 'if statement' has >no missing values. > >I check with is.na(my variable) and it has no missing values > >Error in if (fraction <= 1) { : missing value where TRUE/FALSE needed > >Best regards > > [[alternative HTML version deleted]] > >______________________________________________ >R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code.
-- Sent from my phone. Please excuse my brevity. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.