There is a dataframe 'ori_data' (as the image 'grey area'), how to add two variables 'final_price/final_price_from'?
1.'final_price' retrieve the first appear figure from 'price1:price4'
2.'final_price_from' is the source tag that 'final_price' come from which variables 'price1:price4'
ori_data <- data.frame(category=c("a","b","c","d","e","f","g","h","i"),
price1=c(1,9,0,0,0,0,6,9,0),
price2=c(3,0,2,0,6,0,0,9,0),
price3=c(0,2,0,3,0,5,4,0,0),
price4=c(0,0,3,0,5,7,0,0,0))
