Session Ready
Exercise

Parsing number formats

The readr importing functions can sometimes run into trouble parsing a column as numbers when it contains non-numeric symbols in addition to numerals.

For example, we've loaded a data frame called debt containing the national debt of the US in different years. Take a look at head(debt) to see that even the debt amount is stored as characters.

Your job is to use parse_number() to coerce to numeric the amount column containing debt values.

Instructions
100 XP

Use parse_number() to interpret the amount column of the debt data frame (available in your workspace). Assign the result of the function call back to the amount column.