last_o2 {presens} | R Documentation |
Extract latest O2 values
Description
Extracts the last O2 values from a PreSens text file.
Usage
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
Examples
## Not run:
file <- system.file('extdata', 'all_o2_units.txt', package = 'presens')
last_o2(file)
last_o2(file, n_last = 5)
## End(Not run)
[Package presens version 2.1.0 Index]