Write the R-code to extract various nutritional values from
different food varieties in the given nutrition XML document. If someone ate
all the food items at once, plot a chart to compare it to the daily value for
total-fat, saturated-fat, cholesterol, sodium, carb, fiber, protein
Find the correlation matrix between the total-fat,
saturated-fat, cholesterol, sodium, carb, fiber, protein values that you
extracted in Question 1. Please submit the R code and the value of Pearson's
product-moment correlation
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 1 | 2 | 3 | 4 | 5 |