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

lab - (optional) The laboratory which performed the test

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 - (optional) Whole Sediment, Sediment Water Interface, etc. Be sure to not include Reference Toxicants

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 documentation built on Nov. 3, 2024, 12:54 a.m.