So I have data looking like this.
I am trying to multiply a row given a specific Year and Name. I want to multiply the row by a value given it satisfies a given name and year requirement. For example Year = 2006
, and Name = ABG Sundal Collier Holding
. I find it hard to manipulate a row versus column that is easy to do changes in with dplyr
package.
Any help would be greatly appreciated.
Edit: I'm not trying to make a new variable (or row), only multiplying the existing row with a value.