prep_data: Merge taxa, water quality, and habitat data into one

Description Usage Arguments Value

View source: R/data_prep.R

Description

Merge taxa, water quality, and habitat data into one

Usage

1
2
3
4
prep_data(master.df, odbc.name = "BIBI_2017",
  sample.date = "SAMPLE_DATE_TIME", agg.samp.num = TRUE,
  clean.taxa = TRUE, development = TRUE, bibi.version = 2016,
  month = TRUE)

Arguments

odbc.name

= The name of the ODBC connection.

development

= during index development, "development" should be set to TRUE. When TRUE the sample_number (replicate) with the largest reporting value (# of individual observed) is selected for. During final scoring development should be set to FALSE. When FALSE all replicates are included in the final output.

bibi.version

= If set to 2011 the water quality and habitat parameters will be handled as defined in the 2011 Chessie BIBI. If set to 2016 the water quality and habitat parameters will be handled as in the 2016 Chessie BIBI.

month

= If true data from Nov, DEC, and Jan eliminated.

Master

= Taxa count data

agg_sample_num

= Should the sample number be treated as seperate samples (FALSE) or aggregated into a single sample (TRUE)?

Value

Merge taxa water quality, and habitat data into one large data frame


zsmith27/CHESSIE documentation built on May 25, 2019, 7:24 p.m.