Rebonjour tout le monde,
J'ai un tableau avec plusieurs variables comme illustré ci-dessous :

région parcelle produit Nom_produit date_N° date Qté_N° quantité
a 1 Produit_1 xxx date_1 10/06/2019 qté_1 45
a 1 Produit_2 yyy date_2 15/06/2019 qté_2 52
a 1 Produit_3 zzzz date_3 20/07/2019 qté_3 36
a 2 Produit_1 xxx date_1 01/05/2019 qté_1 98
a 2 Produit_2 yyy date_2 03/07/2019 qté_2 52
a 2 Produit_3 zzzz date_3 05/08/2019 qté_3 46
a 2 Produit_4 www date_4 10/08/2019 qté_4 96
a 3 Produit_1 xxx date_1 15/05/2019 qté_1 87
a 3 Produit_2 yyy date_2 20/05/2019 qté_2 56

et je voudrais le transformer comme ci-dessous avant de faire des analyses statistiques

région parcelle Produit_1 Produit_2 Produit_3 Produit_4 date_1 date_2 date_3 date_4 qté_1 qté_2 qté_3 qté_4
a 1 xxx yyy zzzz 10/06/2019 15/06/2019 20/07/2019 45 52 36
a 2 xxx yyy zzzz www 01/05/2019 03/07/2019 05/08/2019 10/08/2019 98 52 46 96
a 3 xxx yyy 15/05/2019 20/05/2019 87 56

si vous pouvez m'aider là-dessus et merci d'avance ;-)