'How to combine values of different variables into new variable

I have several numerical variables, the value of which I want to add (+) into a new variable. The different things I tried always gave me the error message „non numeric argument to binary operator“. How do I add the values?

I have added them also by no_pp <- c(„Suppliers“ + „Producers“ + „Buyers“) but it doesn’t show up as a new variable

r


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source