Generate the difference between 3 different variables

Hi, welcome to the forum

I think we need a see more of your code and some sample data.

A handy way to supply some sample data is the dput() function. In the case of a large dataset something like dput(head(mydata, 100)) should supply the data we need. Just do dput(mydata) where mydata is your data. Copy the output and paste it here.

For example you are doing something with the function set_na() but what package does it come from?