hi all, I'm new and just learning how to use rstudio
I'm trying to understand something
let say, when I want to know "what car has the highest horsepower (hp)? using mtcars dataset in rstudio
then I run
max(mtcars$hp)
[1] 335 comes out for the answer
then I do compare it to something a bit different
I run
library("dplyr")
and
mtcars%>%
max(mtcars$hp)
[1] 472 comes out for the answer
why is that different?
and for "what car has the highest horsepower (hp)", how can I get maserati bora or the full detailed row of maserati bora as an answer? instead 335 as the highest hp on mtcars
thanks