Description Usage Arguments Value Examples
During spring tides higher high tides are produced. This package calculates mean high water spring at a desired location. Since often only short term data is available, this package uses the simltaneous comparison method to compute the datum. Data from the desired location and a control station for the same time period is required.
1 2 | tider_correct(df_sub, df_ctrl, sub_level, sub_daytime, ctrl_level, ctrl_daytime,
mhw_ctrl, s2_ctrl, mn_ctrl, type = c("spring", "neap"))
|
df_sub |
data frame for subordinate/short term station |
df_ctrl |
data fram for control station |
sub_level |
character of column containg gauge data for the subordinate station |
sub_daytime |
character of column containg daytime values subordinate station |
ctrl_level |
character of column containg gauge data for the control station |
ctrl_daytime |
character of column containg daytime values for the control station |
mhw_ctrl |
A numeric of the Mean High Water of the nearest NOAA Control Station |
s2_ctrl |
A numeric of the Prinicipal solor semidiurnal constituent from tAmatchhe nearest NOAA control station. |
mn_ctrl |
A numeric of the Mean range of tide from nearest NOAA control station |
type |
the corrected value to return |
returns a numeric of the mean high water spring or neap
1 2 3 4 5 6 7 8 9 | i<-read.csv(system.file("extdata","i.csv",package="tider"))
e<-read.csv(system.file("extdata","e.csv",package="tider"))
i$DateTime <- lubridate::parse_date_time(paste(i$Date,i$Time),
"%m/%d/%y %H:%M:%S")
e$DateTime <- lubridate::parse_date_time(paste(e$Date,e$Time),
"%m/%d/%y %H:%M:%S")
m <- tider_correct(i, e, "Level", "DateTime", "Level", "DateTime", (8.34-6.06),
42, 4.53, "spring")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.