[R] missing values error in if statement

Jeff Newmiller jdnewm|| @end|ng |rom dcn@d@v|@@c@@u@
Fri May 20 00:20:15 CEST 2022

Not reproducible. Posted HTML.

On May 19, 2022 2:30:58 PM PDT, Neha gupta <neha.bologna90 using 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 using r-project.org mailing list -- To UNSUBSCRIBE and more, see
>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.

More information about the R-help mailing list