How do I create a Profit data vector from Cost and Price data vectors? I was thinking on something like this, but it did not work.
DATA: Cost = 3 2.5 2; Pric