'How to convert multiple valuta to a single valuta in a large data set in R?

I am working a with dataframe of over 300000 rows consisting of products and their prices in a number of different countries. The prices are displayed in the countries' own currency, meaning that over 25000 values in the 'price' column are displayed in a valuta other than Euro. What is the quickest way to convert all of these prices to be displayed in Euro? I have already removed the valuta signs and turned all into numeric object types, so I only have to convert the non-Euro values to Euro values.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source