get.offsets {rLakeAnalyzer} | R Documentation |
Gets depths from data frame containing profile info.
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
get.offsets(data)
Arguments
data |
Data frame returned from |
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
Examples
#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)
[Package rLakeAnalyzer version 1.11.4.1 Index]