I have a data frame with several columns, I need to subtract the values of two columns from this data frame and add the resulted values as a new column in the same dataset.
Any idea on how to write function in R to do so?
Thanks in advance
Far
I have a data frame with several columns, I need to subtract the values of two columns from this data frame and add the resulted values as a new column in the same dataset.
Any idea on how to write function in R to do so?
Thanks in advance
Far