Please answer these questions using R language. Dataset(df): Questions:
Posted: Fri May 20, 2022 1:04 pm
Please answer these questions using R
language.
Dataset(df):
Questions:
х State Crop Area Production Rainfall 0 Andaman and Nicobar Islands 1254.00 2000.00 2763.2 2.00 1.00 2763.2 102.00 321.00 2763.2 176.00 641.00 2763.2 Year Season 2000 Kharif Arecanut 2000 Kharif Other Kharif pulses 2000 Kharif Rice 2000 Whole Year Banana 2000 Whole Year Cashewnut 2000 Whole Year Coconut 2000 Whole Year Dry ginger 2000 Whole Year Sugarcane 2000 Whole Year Sweet potato 2000 Whole Year Tapioca 720.00 165.00 1 Andaman and Nicobar Islands 2 Andaman and Nicobar Islands 3 Andaman and Nicobar Islands 4 Andaman and Nicobar Islands 5 Andaman and Nicobar Islands 6 Andaman and Nicobar Islands 7 Andaman and Nicobar Islands 8 Andaman and Nicobar Islands 9 Andaman and Nicobar Islands 2763.2 18168.00 65100000.00 2763.2 36.00 100.00 2763.2 1.00 2.00 2763.2 5.00 15.00 2763.2 40.00 169.00 2763.2
4. Write a Rstudio function calculates yield. 5. Plot the yield of sugarcane, coconut and rice in time. Here is the example: 3500 Rice Total Wheat -Pulse -Coarse ce -Total food grain 3000 2500 2000 kg/ha 1500 1000 footboot food? 500 Jooo 0 1954-55 1956-57 1958-59 1960-61 1962-63 1964-65 1966-67 1968-69 1970-71 1972-73 1974-75 1976-77 1990 1978-79 1980-81 1982-83 1984-85 1986-87 107 1990-91 1988- 1992-93 1994-95 1996-97 1998-99 2000-01 2002-03 2004-05 2006-07 2008-09 2010-11 o01 6/-0,45 TOOT 40001 ! Year 6. Write a RStudio function calculating annual growth of any parameter. 7. Plot the annual growth rate of Area, Yield and Rainfall for 5 different crops. Here is the example:
Annual growth rate, % -10 -5 an 20 25 Rice Do not forget to add the legends!! wheat Jowar Bajra Maize Rag Small millels Barley Coarse cereals Total cereals Gram Area Production Tur Yield Total pulses Total foodgrains Sugarcane Groundnut Sesamum R&M Sunflower Soyabean Total (9) oilseeds Cotton Jute & mesta
language.
Dataset(df):
Questions:
х State Crop Area Production Rainfall 0 Andaman and Nicobar Islands 1254.00 2000.00 2763.2 2.00 1.00 2763.2 102.00 321.00 2763.2 176.00 641.00 2763.2 Year Season 2000 Kharif Arecanut 2000 Kharif Other Kharif pulses 2000 Kharif Rice 2000 Whole Year Banana 2000 Whole Year Cashewnut 2000 Whole Year Coconut 2000 Whole Year Dry ginger 2000 Whole Year Sugarcane 2000 Whole Year Sweet potato 2000 Whole Year Tapioca 720.00 165.00 1 Andaman and Nicobar Islands 2 Andaman and Nicobar Islands 3 Andaman and Nicobar Islands 4 Andaman and Nicobar Islands 5 Andaman and Nicobar Islands 6 Andaman and Nicobar Islands 7 Andaman and Nicobar Islands 8 Andaman and Nicobar Islands 9 Andaman and Nicobar Islands 2763.2 18168.00 65100000.00 2763.2 36.00 100.00 2763.2 1.00 2.00 2763.2 5.00 15.00 2763.2 40.00 169.00 2763.2
4. Write a Rstudio function calculates yield. 5. Plot the yield of sugarcane, coconut and rice in time. Here is the example: 3500 Rice Total Wheat -Pulse -Coarse ce -Total food grain 3000 2500 2000 kg/ha 1500 1000 footboot food? 500 Jooo 0 1954-55 1956-57 1958-59 1960-61 1962-63 1964-65 1966-67 1968-69 1970-71 1972-73 1974-75 1976-77 1990 1978-79 1980-81 1982-83 1984-85 1986-87 107 1990-91 1988- 1992-93 1994-95 1996-97 1998-99 2000-01 2002-03 2004-05 2006-07 2008-09 2010-11 o01 6/-0,45 TOOT 40001 ! Year 6. Write a RStudio function calculating annual growth of any parameter. 7. Plot the annual growth rate of Area, Yield and Rainfall for 5 different crops. Here is the example:
Annual growth rate, % -10 -5 an 20 25 Rice Do not forget to add the legends!! wheat Jowar Bajra Maize Rag Small millels Barley Coarse cereals Total cereals Gram Area Production Tur Yield Total pulses Total foodgrains Sugarcane Groundnut Sesamum R&M Sunflower Soyabean Total (9) oilseeds Cotton Jute & mesta