View source: R/import_mooring_QYC.R
import_mooring_QYC | R Documentation |
Imports Quartermaster Yacht Club (QYC) 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.
import_mooring_QYC(fname)
fname |
The filename to import, as a string |
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.
A tibble with imported data and clean column names
file <- system.file("extdata", "test_mooring_QYC_data.txt", package = "kcmarine")
data <- import_mooring_QYC(file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.