I am doing lots of operations on a dataframe to reshape my data.
Often, I use subsets like
trx[which(trx$Currency == "EUR"),]$ExchangeOriginal<- 1
However, when I applying my functions to data where certain subsets do not exist, the function will fail. For example, if there are no
trx$Currency
values that are "EUR".
What are smart ways to handle this? Is there something like
On Error Resume next