I am new in R and already found a lot of answers on this site, but with this one, I am stuck. I have a table (in Excel, see image in link) that gives me a value (called c) based on class (0 to 6) and start date (17/2018, 1/7/2019, 1/7/2020 and so on). In my dataframe there is a colum 'date' and a column 'class'. For every row in the dataframe, I need to find the corresponding c-value (so if class = 2 and date = 15/10/2018, I need the value 659,86 in a new column).
I have to problems: - when importing the data in R, it sets an "X" before the date - I don't know how to do the lookup with dates (with exact values, I manage with merge).
Hope my question is clear and somebody can help me.
Thanks!
steven