This BMI Calculator Shiny app allows users to enter their weight (kg) and height (m)
to calculate their Body Mass Index (BMI) and interpret the result.
2025-04-07
This BMI Calculator Shiny app allows users to enter their weight (kg) and height (m)
to calculate their Body Mass Index (BMI) and interpret the result.
Key Features: - Built using the shiny
R package
- Uses numericInput()
for user input
- Calculates BMI using server-side logic
- Shows BMI result and interpretation in real-time
- Outputs update when the Calculate BMI button is clicked —
Here is the BMI calculation logic used in the server.R
file:
```r bmi_calc <- eventReactive(input\(calc, { round(input\)weight / (input$height)^2, 1) })
output$bmi <- renderText({ bmi_calc() })
output$interpretation <- renderText({ bmi <- bmi_calc() if (bmi < 18.5) “Underweight” else if (bmi < 25) “Normal weight” else if (bmi < 30) “Overweight” else “Obese” }) —
R Markdown
and ioslides_presentation
Thank you for reviewing my submission!