Learn R Programming

VulnToolkit (version 1.1.4)

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

Description

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

Usage

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

Value

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

Details

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

See Also

HL

Examples

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab