2025-06-24

Introduction

Overview

The application is written in Shiny, a web application framework for R. The source code consists of two files:

  • server.R: includes the backend of a Shiny web application
  • ui.R: includes the the user-interface elements

The application is hosted on shinyapps.io. The application goal is to provide an interface to calculate the expected adult height of a child

How the App works?

Enter family information:

  • enter height of father in cm
  • enter height of mother in cm
  • enter sex of child of interest

Output:

  • the expected height of the child as an adult following a standardized formula

Example:

sex='male'; height_f=180; height_m=165
if(sex=="male"){
    height_c <- (height_m + height_f)/2 + 6.5
} else {
    height_c <- (height_m + height_f)/2 - 6.5
}
height_c        
## [1] 179