tox.summary: Get the Statistical Summary for Tox Results Data

View source: R/toxicity.R

tox.summaryR Documentation

Get the Statistical Summary for Tox Results Data

Description

This function will calculate the tox summary,

given an argument which is a dataframe of tox results data

Usage

tox.summary(toxresults)

Arguments

toxresults

a dataframe with the following columns: stationid, toxbatch, species, sampletypecode matrix, labrep, result. This data must also include the control samples (stationcode 0000, sampletypecode CNEG etc)

The input dataframe is structured as follows

toxresults - a dataframe that contains the toxicity results

stationid - an alpha-numeric identifier of the location;

toxbatch - the toxbatch id - used to join with the control sample

species - The Genus and species of the animale that was tested

sampletypecode - The sampletype used Grab, CNEG etc. Control samples must be included

matrix - Whole Sediment, Sediment Water Interface, etc. Probably useless to include. I Just have it to make sure they dont put Reference Toxicant

labrep - There should be 5 per station, species pair

result - the percentage that survived the test, or had normal development

Examples

data(tox_sampledata)
tox.summary(tox_sampledata)


SCCWRP/SQOUnified_archive documentation built on March 30, 2022, 12:14 a.m.