R/computeBodyFrontalArea.R

computeBodyFrontalArea <- function (massEmpty,type='other') {
  isPasserine <- type == 'passerine'
  isOther <- !isPasserine

  bodyFrontalArea <- 0.0129*massEmpty^(0.614) * isPasserine +
                     0.00813*massEmpty^(0.666) * isOther
  return(bodyFrontalArea)
  #switch(type,
  #       'passerine' = 0.0129*massEmpty^(0.614),
  #       0.00813*massEmpty^(0.666)
  #)
}

Try the afpt package in your browser

Any scripts or data that you put into this service are public.

afpt documentation built on Nov. 3, 2023, 5:10 p.m.