mrUpdate: Updates build-in metabolic parameter estimates using new...

Description Usage Arguments Details See Also Examples

View source: R/MRUpdate_fun.R

Description

mrUpdate updates paremeter estimates supplied in bat.params with estimates obtained through the use of mrRaw for use throughout the package.

Usage

1
mrUpdate(x, species, params = data("bat.params", package = "batwintor"))

Arguments

x

object returned by mrRaw

species

a character vector of the species to be updated. This should be a row name from the bat.params

params

a dataframe of metabolic parameters (generally that returned with bat.params)

Details

Generally speaking not all of the metabolic parameters documented in bat.params are updated at once, and therefore only those that have new estimates are updated.

See Also

bat.params, mrRaw, batLoad

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
##MRUpdate
#TODO create stable example with some nature of fixed raw data
# data("bat.params")
# dat <- tbl_df(dat.dirty)
# names(dat) <- c("date", "bat", "species", "sex", "band",
# "mass.in", "mass.out", "Ta", "Ta.p",
#                 "flow", "FiO2", "FeO2", "VO2.ml.min", "VO2.ml.h", "VO2.ml.h.g")
# dat$Ta <- as.factor(dat$Ta)
# mr.raw <- MRFromRaw(x = dat, sp = "MYCA")
# bat.update <- MRUpdate(mr.raw, species = "M.californicus")

cReedHranac/batwintor documentation built on Jan. 27, 2020, 7:39 p.m.