hc05: Calculate HC05

Description Usage Arguments Details Value Examples

View source: R/hc05.R

Description

The HC05 is calculated on each specified column of a specified data frame.

Usage

1
hc05(df_data, col_XC95)

Arguments

df_data

Data frame of taxa data with XC95 values in one or more columns.

col_XC95

Column names for XC95 values to calculate the HC05.

Details

The HC05 is the 5th percentile hazardous concentration of a set of related 95th percentile extirpation concentration values (XC95). The HC05 is the estimated value of the stressor at which 5

Value

A vector of values with names corresponding to the provided column names.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#' \dontrun{
# Calculate XC95 values using fish.wt.cdf example
# data
data(dta.do)
data(ss.sites)
# run function (~20 seconds)
df_tv_do <- fish.wt.cdf(datafile = dta.do, ss = ss.sites, plot = T, dogam = T
                       , SampleID = "Station_Date", tag = "wt", sortvect = NULL
                       , np = 61, nt = 25, addtrend = T
                       , wd = getwd(), groups = c("BigHUC","ECOREGL3","WS_AREA")
                       , xvar = "cond")
# Calculate HC05 values
hc05_tv_do <- hc05(df_tv_do, c("XC95.cdf", "XC95.gam"))
print(hc05_tv_do)
}

leppott/InvertExtirp documentation built on Nov. 8, 2019, 5:58 p.m.