last_o2: Extract latest O2 values

Description Usage Arguments Value Author(s) See Also Examples

Description

Extracts the last O2 values from a PreSens text file.

Usage

1
last_o2(file, n_last = 10)

Arguments

file

a character string. The filepath for the file to be read.

n_last

integer. The number of O2 values to extract and return. Default is 10.

Value

A vector of numeric O2 values with a length of n_last.

Author(s)

Matthew A. Birk, matthewabirk@gmail.com

See Also

import_o2

Examples

1
2
3
4
5
6
## Not run: 
file <- system.file('extdata', 'all_o2_units.txt', package = 'presens')
last_o2(file)
last_o2(file, n_last = 5)

## End(Not run)

presens documentation built on May 1, 2019, 9:13 p.m.

Related to last_o2 in presens...