IFBFat: IFBFat

View source: R/IFBFat.R

IFBFatR Documentation

IFBFat

Description

calculate IFBFat for bighorn sheep

Usage

IFBFat(db, maxfat, units, bcs, append, summary, sumcols)

Arguments

db

dataframe of capture database

maxfat

name of column where max fat measurement exists

units

character. whether rump fat measurement is in "cm" or "mm"

bcs

name of column where body condition score exists

append

Logical. TRUE/FALSE. TRUE if IFBFat should be appended to original dataframe. Default is TRUE.

summary

Logical. TRUE/FALSE. TRUE if a summary should be returned. Summary included mean, SE, and upper and lower 95 percent CIs calculated by categories of choice.

sumcols

vector of column names in database that should be aggregated on. Max categories == 3. Example: calculate summary of IFBFat by Sex and PMU

Value

Returns original capture database with IFBFat column appended

Examples

fat<-IFBFat(dbpath = 'C:/Desktop/yourdb', rumpfat = 'MaxFat', units = "mm", bcs = 'BCS')

khuggler/Ovis documentation built on Nov. 30, 2023, 7:41 p.m.