get.offsets: Gets depths from data frame containing profile info.

Description Usage Arguments Value See Also Examples

Description

Extracts the depth information from a data frame containing multi-depth observation data. Relies on the format of the header to get information and may fail if your file format is incorrect. Please follow 'VAR_##.#' format, where ##.# is the depth of data for that column. VAR is typically 'wtr' to indicate water temperature.

Usage

1

Arguments

data

Data frame returned from load.ts.

Value

A numeric vector of depth values. Should be the ncol(data) - 1 in length as the first column contains date/time data.

See Also

load.ts

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#Get the path for the package example file included
exampleFilePath <- system.file('extdata', 'Sparkling.wtr', package="rLakeAnalyzer")

#Load
sparkling.temp = load.ts(exampleFilePath)

#get the lake depths associated with each column
depths = get.offsets(sparkling.temp)

print(depths)

rLakeAnalyzer documentation built on June 10, 2019, 1:02 a.m.