Food Nutrition Assignment
- Country :
Australia
Use the dataset Food Nutrition and answer the following questions:
- Set the working directory for your work
- Import the dataset in the console in the .xls(x) format
- View the top 10 rows of the data
- View the last 20 rows of the data
- Show the summary of the data
- Create a vector test using the top 10 values of variableProtein_(mg)
- Select the top 5 rows of initial 5 variables in a matrix format
- What is the class of theSodium_(mg)variable
- Create a new variable EPW by dividingEnerg_Kcalwith theWater; what is the dimension of the new dataset?
- Create a subset of the dataset, where theEnerg_Kcalis less than 500, what is the dimension of this new dataset?
- Plot a Bar Plot betweenEnrg_KcalandWaterusing the new subset created
- Plot a histogram ofSugar_totvariable using the new subset
- Find the top 10 products based on following
- Higher theEnergy_Kcal, higher the ranking
- Lower thewatercontent, higher the ranking
- Create a subset of the data whereproduct_desccontains CHEESE and list down the summary statistics of the subset
- Using thecutfunction onwatervariable divide the whole data into 6 bins, list down the summary statistics of all the 6 bins
Are you struggling to keep up with the demands of your academic journey? Don't worry, we've got your back! Exam Question Bank is your trusted partner in achieving academic excellence for all kind of technical and non-technical subjects.
Our comprehensive range of academic services is designed to cater to students at every level. Whether you're a high school student, a college undergraduate, or pursuing advanced studies, we have the expertise and resources to support you.
To connect with expert and ask your query click here Exam Question Bank