I have a dataset like this:
retailer_id transaction_id user_id products total
D31 700 4 water 1
D31 701 17 coffee 2
D31 702 68 coffee 2
D31 703 78 water 1
D31 704 4 juice 3
where the retailer_id
column will only ever have one value. I will create multiple vectors, e.g. total cost, average price and whatever else and then I want to join them into a dataframe or vector that takes the name D31
. I cannot find any process which would pull D31
and then make a new vector or dataframe with that name.
Since I am automating this as part of a reporting process, I need to have the name of this new dataframe that the value within retailer_id
.