vendredi 31 mai 2019

How to create data.frame given the situations?

I am trying to create data.frame like in this picture i actually have a for loop before that df

I got the values i wanted in this second picture.

But when I tried to create data.frame, I faced error message ! what I have entered the error message.

And when W is null as well. null values

All I wanted to do is to produce this:

this

Where I think I will also be using for loops to ensure quantity ordered equals to previous demand.

please help me.. I just started learning. thank you!!

Aucun commentaire:

Enregistrer un commentaire