I got this code from a course lecture: I’m using Rstudio and R together. “rank” is giving an obviously wrong answer Here is what my Rstudio tells me: