I have a dataset and I am looking to extract the state name having the highest female. let's say the data can look like. Ps: keep it simple,
I have tried
df$State.name[max(female)]
df$State.name[max(df$female)]
with(df, State.name[max(female)
but nothing worked
See the attached image