IFBFat | R Documentation |
calculate IFBFat for bighorn sheep
IFBFat(db, maxfat, units, bcs, append, summary, sumcols)
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 |
Returns original capture database with IFBFat column appended
fat<-IFBFat(dbpath = 'C:/Desktop/yourdb', rumpfat = 'MaxFat', units = "mm", bcs = 'BCS')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.