Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer using Rstudio One diabetic patient measures his blood glucose level every morning, and the readings in the past week are as follows: Sunday

Please answer using Rstudio

One diabetic patient measures his blood glucose level every morning, and the readings in the past week are as follows: Sunday Monday Tuesday Wednesday Thursday Friday Saturday 170 186 180 195 169 157 179 First of all, write an R program to put all the 7 glucose levels (not the days of the week) in a vector. Then, solve the following two problems: R provides a function named mean() to calculate the mean value of a numeric vector. Use this function to calculate the average blood glucose level of this patient in the past week. (Search for examples of how to use this function if needed) The glucose levels above are measured in mg/dL (milligrams per deciliter), but the patient also wants to know the levels measured in mmol/L (millimoles per liter). We know that 1 mmol/L = 18 mg/dL. Write an R code to convert all the daily glucose levels from mg/dL to mmol/L and put the results in a new vector.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Postgresql 16 Administration Cookbook Solve Real World Database Administration Challenges With 180+ Practical Recipes And Best Practices

Authors: Gianni Ciolli ,Boriss Mejias ,Jimmy Angelakos ,Vibhor Kumar ,Simon Riggs

1st Edition

1835460585, 978-1835460580

More Books

Students also viewed these Databases questions