number.tides: Numbers tidal cycles, flood tides, and ebb tides

Description Usage Arguments Details Value See Also Examples

View source: R/number_tides.R

Description

Numbers tidal cycles, flood tides, and ebb tides in a set of water level data.

Usage

1
number.tides(data, datetime, hl)

Arguments

data

dataframe to modify (containing water levels, time stamps)

datetime

date/time column from full dataset (used as 'time' argument in call to HL)

hl

output from HL

Details

Numbers tidal cycles, flood tides, and ebb tides in a set of water level data.

Value

the dataframe noted in data, with additional columns assigning a number to each tidal cycle, ebb tide, and flood tide.

See Also

HL

Examples

1
2
3
4
5
# build high-low dataset
HL.NL <- HL(level = NL_6min_2013[,2], time = NL_6min_2013[,1])
# number tides in original
nos <- number.tides(data = NL_6min_2013, datetime = NL_6min_2013[,1], HL.NL)
head(nos)

VulnToolkit documentation built on Aug. 2, 2021, 5:07 p.m.