Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201894

Subtract two columns in a data frame

$
0
0

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


Viewing all articles
Browse latest Browse all 201894

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>