I have to generate a date sheet/calendar (week wise preferably) which looks at the application of UREA (among other applications like tilling, sowing, harvesting) in various villages. I have the Date of operation and the village wise UREA application. Can I generate a date sheet which has villages on one side and then the weeks in which UREA has been applied in that particular village.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float Date byte(Name_mat Operation) str18 village 19709 . . "BOIKUNTHIPUR" 19699 . . "DAKKHIN KABIRKATHI" 19617 . . "RASUNSHIMULBARI" 19791 25 . "DAKKHIN KABIRKATHI" 19588 22 . "BEGUMPUR" 19572 25 . "BHABANIPUR" 19546 . . "DHARIKAMARI" 19575 26 . "DHARIKAMARI" 19792 26 . "DAKKHIN KABIRKATHI" 19817 . . "KONAPARA" 19637 16 . "BOIKUNTHIPUR" 19496 . . "KONAPARA" 19572 . . "RASUNSHIMULBARI" 19588 26 . "RASUNSHIMULBARI" 19789 22 . "BEGUMPUR" 19613 27 . "DAKKHIN KABIRKATHI" 19653 16 . "RASUNSHIMULBARI" 19707 . . "KONAPARA" 19706 . . "KONAPARA" 19575 . . "KONAPARA" 19816 . . "BHABANIPUR" 19490 16 . "BOIKUNTHIPUR" 19379 22 . "PASCHIM BAHADURPUR" 19519 22 . "NIAMOTPUR" 19666 . . "RASUNSHIMULBARI" 19653 17 . "RASUNSHIMULBARI" 19712 22 . "BHABANIPUR" 19770 22 . "BOIKUNTHIPUR" 19615 27 . "BOIKUNTHIPUR" 19574 . . "NIAMOTPUR" 19604 . . "RASUNSHIMULBARI" 19640 16 . "DAKKHIN KABIRKATHI" 19792 25 . "DAKKHIN KABIRKATHI" 19639 26 . "BOIKUNTHIPUR" 19676 . . "NIAMOTPUR" 19610 . . "DAKKHIN KABIRKATHI" 19783 25 . "PATORDIA" 19606 . . "DHARIKAMARI" 19679 . . "BOIKUNTHIPUR" 19624 26 . "KONAPARA" 19768 22 . "PATORDIA" 19635 26 . "PATORDIA" 19672 16 . "DHARIKAMARI" 19709 . . "BOIKUNTHIPUR" 19613 22 . "DAKKHIN KABIRKATHI" 19666 26 . "DAKKHIN KABIRKATHI" 19641 16 . "BOIKUNTHIPUR" 19711 . . "DHARIKAMARI" 19653 22 . "RASUNSHIMULBARI" 19641 16 . "DHARIKAMARI" 19606 . . "DHARIKAMARI" 19644 25 . "BOIKUNTHIPUR" 19575 16 . "DHARIKAMARI" 19791 26 . "DAKKHIN KABIRKATHI" 19636 25 . "DAKKHIN KABIRKATHI" 19640 26 . "DAKKHIN KABIRKATHI" 19613 17 . "DAKKHIN KABIRKATHI" 19520 . . "KONAPARA" 19765 17 . "BOIKUNTHIPUR" 19653 26 . "BHABANIPUR" 19547 16 . "BOIKUNTHIPUR" 19547 . . "RASUNSHIMULBARI" 19635 26 . "PATORDIA" 19712 26 . "NIAMOTPUR" 19671 . . "BOIKUNTHIPUR" 19422 25 . "BOIKUNTHIPUR" 19762 26 . "DHARIKAMARI" 19654 25 . "NIAMOTPUR" 19757 22 . "DAKKHIN KABIRKATHI" 19653 25 . "BHABANIPUR" 19762 22 . "BOIKUNTHIPUR" 19699 30 . "NIAMOTPUR" 19768 17 . "DAKKHIN KABIRKATHI" 19814 25 . "KONAPARA" 19793 25 . "BOIKUNTHIPUR" 19768 30 . "RASUNSHIMULBARI" 19697 16 . "RASUNSHIMULBARI" 19699 . . "DAKKHIN KABIRKATHI" 19793 25 . "PATORDIA" 19418 25 . "PATORDIA" 19641 25 . "DAKKHIN KABIRKATHI" 19700 . . "DAKKHIN KABIRKATHI" 19795 26 . "BOIKUNTHIPUR" 19613 27 . "DAKKHIN KABIRKATHI" 19541 25 . "DAKKHIN KABIRKATHI" 19546 25 . "BOIKUNTHIPUR" 19334 16 . "BEGUMPUR" 19706 22 . "KONAPARA" 19768 22 . "BOIKUNTHIPUR" 19674 . . "BOIKUNTHIPUR" 19799 26 . "PATORDIA" 19580 . . "BOIKUNTHIPUR" 19613 27 . "DAKKHIN KABIRKATHI" 19702 . . "DHARIKAMARI" 19798 30 . "DAKKHIN KABIRKATHI" 19703 26 . "BHABANIPUR" 19828 . . "DAKKHIN KABIRKATHI" 19728 . . "NIAMOTPUR" 19793 19 . "PASCHIM BAHADURPUR" 19550 25 . "BOIKUNTHIPUR" end format %tdnn/dd/CCYY Date label values Name_mat inputnames label def inputnames 22 "UREA", modify label def inputnames 25 "TSP", modify label def inputnames 26 "MP", modify label def inputnames 27 "GYPSUM", modify
0 Response to Generating a date sheet/calendar in Stata
Post a Comment