read_odf: Read 'ODF' files

Description Usage Arguments Examples

View source: R/read-odf.R

Description

ODF (Ocean Data) files are whitespace-delimited files whose column names and are specified in a loosely formatted header.

Usage

1
2
3
4
5
6
7

Arguments

file

A file, URL, or connection. Files ending in .gz, .bz2, .xz, or .zip will be automatically uncompressed; URLs will be automatically downloaded. See readr::read_lines() for a full description of how this parameter is interpreted.

skip_data

Number of non-header rows to skip.

n_max

Maximum number of rows to read.

header

A previously read value obtained from read_odf_header().

header_lines

A previously read value obtained from read_odf_header_lines().

n_header

The starting guess for number of header lines.

Examples

1
2
3
4
odf_file <- bs_example("odf/CTD_98911_10P_11_DN.ODF")
read_odf(odf_file)
read_odf_colmeta(odf_file)
str(read_odf_header(odf_file))

paleolimbot/bsrto documentation built on Dec. 12, 2021, 5:44 a.m.