I am new to R and I am having some issues with manipulating my dataset. I need to create a new column in my dataset based on the conditions of two other columns.
I have a column "is_3t_mine" which takes a value 0 or 1 & another column "is_gold_mine" which takes the value of 0 or 1.
I need a third column "dfa_mine" that meets the conditions;
if is_3t_mine == 0 & is_gold_mine == 0 then "dfa_mine" = 0 all other iterations "dfa_mine" = 1
I've been trying to accomplish this with the pipeline function of dplyr but haven't had any success.