Warning: argument is not numeric or logical: returning NA

Can any expert here tell me which part of my code is wrong that R spit out "Warning: argument is not numeric or logical: returning NA"? Thank you.

If the flower dataset is a renamed version of the iris dataset, the variable name is Petal.Length, not Patel.Length.

1 Like

Thank you. It works. :woman_facepalming: :woman_facepalming:

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.