DataFrame with all field as text data

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.

Hi!

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:

I am sorry. I am new. I tried to create a "reprex". But failed.
Can you please direct me to some place where I can learn first to "reprex"

Thanks

Click on the link I gave you, that is a guide for beginners.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.