I am working with a data frame where all the fields are character type. When I try to coerce some fields ( "20-25 years"......and so on), I get NAs in all the rows of that column.
Please guide me as to how I can convert text data to appropriate types.
To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one: