myddt: "My DDT" function

myddtR Documentation

"My DDT" function

Description

Creates a ggplot of the fish SPECIES, length vs weight, coloured by river. Saves the data, filtered to a specific species, to the working directory. Creates a list with three attributes:

Usage

myddt(df, SPECIES)

Arguments

df

- the data frame. This should be ddt.

SPECIES

- the species of fish to filter for.

Details

pre_subset

the data frame passed to the function (the 'df' parameter).

post_subset

the data frame filtered by 'SPECIES'.

river_freq

a frequency table of 'RIVER's for the given 'SPECIES'.

Value

A LENGTH vs WEIGHT plot and a named list with the pre- and post-filtering data frame as well as a frequency table of rivers.

Examples

## Not run: myddt(df=ddt, SPECIES="CCATFISH")

sam-irl/MATH4753bird0023 documentation built on May 3, 2022, 6:29 p.m.