hi, i am undertaking a project looking tax incomes across local authorities.
I have a dataset, with tax data over the years known as tax_data
I have a column with the names of the local authorities in them, denoted by localauthority.
I want to create and if statement and a dummy column that will use a select bunch of local authorities to match up
eg something that looks like this;
if localauthority == c('Exeter', 'Oxford', 'Cambridge') then return a value of 1
if not return a value of 0
ie an if statement that will create a dummy column, where if the localauthority matches the ones listed it will return a value of 1, and if not return a value of 0.