How can you write the following in if functions in R
Supposing you have X ranging from 121 to 212 and Y ranges from 122 to 212, how can you write an if function to represents something like:
if 121 <= X <= 212 and 122 <= Y <= 212; then do something. I am trying to write it in such as way that any number outside the range will show an error message.
Aucun commentaire:
Enregistrer un commentaire