I am trying to find the five countries with the most number death before COVID using data from John Hopkins University.
My code:
    df_test <- df %>%
        group_by(region) %>%
        summarise(death = max(death)) %>%
        arrange(desc(death)) %>%
        top_n(5)
It should Be US, Brazil, India, Mexico, UK I'm getting Brazil, India, Mexico, UK, Italy
Does anyone know what may be wrong? Thanks in advance!
EDIT: Also, running my professor's data set, the max value is showing up "NA" when I run max(df$death)
 
     
    