Skip to contents

Download time series of sea-state parameters from RESOURCECODE database

Usage

get_parameters(
  parameters = "hs",
  node = 42,
  start = as.POSIXct("1994-01-01 00:00:00", tz = "UTC"),
  end = as.POSIXct("1994-12-31 23:00:00", tz = "UTC")
)

Arguments

parameters

character vector of sea-state parameters

node

single integer with the node to get

start

starting date (as integer, character or posixct)

end

ending date (as integer, character or posixct)

Value

a tibble with N-rows and length(parameters) columns.

Examples

ts <- get_parameters(parameters = c("hs", "tp"), node = 42)
plot(ts$time, ts$hs, type = "l")