I have a txt file like this: [["seller_id","product_id","buyer_id","sale_date","quantity","price"],[7,11,49,"2019-01-21",5,3330],[13,32,6,"2019-02-10",9,1089],[50,47,4,"2019-01-06",1,1343],[1,22,2,"2019-03-03",9,7677]]
I would like to read it by R as a table like this:
seller_id | product_id | buyer_id | sale_date | quantity | price |
---|---|---|---|---|---|
7 | 11 | 49 | 2019-01-21 | 5 | 3330 |
13 | 32 | 6 | 2019-02-10 | 9 | 1089 |
50 | 47 | 4 | 2019-01-06 | 1 | 1343 |
1 | 22 | 2 | 2019-03-03 | 9 | 7677 |
How to write the correct R code? Thanks very much for your time.