I have a dataframe below:
Country Population
123491 9.9
2348 4.3
USA 10.1
Australia 9.1
And I want to remove the rows where the Country is invalid, for example 123491 and 2348. The class of Country is "factor".
> sapply(df, class)
Country Population
factor numeric
I want to get the following as a result:
Country Population
USA 10.1
Australia 9.1