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 variable Protein_(mg)
- Select the top 5 rows of initial 5 variables in a matrix format
- What is the class of the Sodium_(mg) variable
- Create a new variable “EPW” by dividing Energ_Kcal with the Water; what is the dimension of the new dataset?
- Create a subset of the dataset, where the Energ_Kcal is less than 500, what is the dimension of this new dataset?
- Plot a Bar Plot between Enrg_Kcal and Water using the new subset created
- Plot a histogram of Sugar_tot variable using the new subset
- Find the top 10 products based on following
- Higher the Energy_Kcal, higher the ranking
- Lower the water content, higher the ranking
- Create a subset of the data where product_desc contains “CHEESE” and list down the summary statistics of the subset
- Using the cut function on water variable 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