Learn R Programming

flying (version 0.1.3)

migrate: Range Estimation

Description

Practical range estimation of birds using methods in Pennycuick (1998) and Pennycuick (2008).

Usage

migrate(file, header = TRUE, sep = ",", quote = "\"", dec = ".",
               fill = TRUE, comment.char = "", ...,
               data = NULL, settings = list(), method = "cmm",
               speed_control = "constant_speed", protein_met = 0)

Arguments

file

The name of the file which the data are to read from

header

Logical. If TRUE use first row as column headers

sep

separator

quote

The set of quoting characters. see read.csv

dec

The character used in the file for decimal points

fill

See read.csv

comment.char

For more details see read.csv

...

further arguments see read.csv

data

A data frame

settings

A list for re-defining constants. See details

method

Methods for fuel management

speed_control

One of two speed control methods. By default constant_speed is used. vvmp_constant is the alternative. The former holds the true airspeed constant while the latter holds the ratio of true airspeed and minimum power speed constant

protein_met

Percentage of energy attributed to protein and metabolism

Value

S3 class object with range estimates based on methods defined and settings

  • data as a data frame

  • range estimates (Km)

  • fuel

  • settings (named vector)

Details

The option *control takes the folowing arguments

  • ppc: Profile power constant

  • eFat: Energy content of fuel from fat

  • eProtein: Energy content of protein

  • g: Accelaration due to gravity

  • mce: Mechanical conversion efficiency [0,1]

  • ipf: Induced power factor

  • vcp: Ventilation and circulation power

  • airDensity: Air density at cruising altitude

  • bdc: Body drag coefficient

  • alpha: Basal metabolism factors in passerines and non passerines

  • delta: Basal metabolism factors in passerines and non passerines alpha*bodyMass^delta

  • invPower

  • speedRatio: True air speed to minimum power speed ratio

  • muscDensity: Density of the flight muscles.

  • phr: Protein hydration ratio

Examples

Run this code
# NOT RUN {
migrate(data = birds, settings = list(eFat = 3.89*10^7))
migrate(data = birds,  method = "cmm", settings = list(airDensity = 0.905))


# }

Run the code above in your browser using DataLab