make_temp_matrix: Make matrix of temperature data

Description Usage Arguments Value Note Author(s) Examples

Description

Takes a given sample ID and converts temperature data of water profiles over time from long format into a matrix. This is most often useful for plotting using plot_column().

Usage

1
make_temp_matrix(sampleID, field_data)

Arguments

sampleID

A regular expression used to select a group of samples

field_data

A dataset of temperature profiles in long format. Column names must be the same as the metadata file provided with this package

Value

Returns matrix of temperature data with depth in rows and date in columns

Note

This is mainly used for generating contour plots. In general, long format is easier to work with. In the included metadata file, each temperature measurement is recorded twice, once as epilimnion and once as hypolimnion.

Author(s)

Alexandra Linz <amlinz16@gmail.com>

Examples

1
2
3
data(metadata)

temp <- make_temp_matrix("TBE.....07", metadata)

Example output



OTUtable documentation built on May 1, 2019, 10:51 p.m.