I'm new to this site (and new to R) so I hope this is the right way to approach my problem. I searched at this site but couldn't find the answer I'm looking for.
My problem is the following: I have imported a table from a database into R (it says it's a data frame) and I want to substract the values from a particular columnn (row by row). Thereafter, I'd like to assign these differences to a new column called 'Difference' in the same data frame.
Could anyone please tell me how to do this?
Many thanks, Arjan