import_mooring_PW: Import Point Williams mooring data from file

View source: R/import_mooring_PW.R

import_mooring_PWR Documentation

Import Point Williams mooring data from file

Description

Imports Point mooring data from a .txt file. Data is expected to contain ALL the parameters available for download from the public mooring website (https://green2.kingcounty.gov/marine-buoy/). Columns and header must be the same as the original data download. When in doubt, download a new file! Again, make sure you download ALL the parameters. The function cleans up the column names for easy use in R, and adds a simple date column.

Usage

import_mooring_PW(fname)

Arguments

fname

The filename to import, as a string

Details

If you're having trouble and receiving an error about the date format,
try re-downloading the data and NOT editing it in Excel prior to
loading in R. Excel messes up the datetime formatting.

Value

A tibble with imported data and clean column names

Examples


file <- system.file("extdata", "test_mooring_PW_data.txt", package = "kcmarine")
data <- import_mooring_PW(file)

tsparksm/kcmwq documentation built on Sept. 2, 2023, 11:30 p.m.