makeRegular: Makes the datetimes of an obs data frame fit the time step...

View source: R/makeRegular.R

makeRegularR Documentation

Makes the datetimes of an obs data frame fit the time step exactly

Description

Makes the datetimes of an obs data frame fit the time step exactly

Usage

makeRegular(obs, timezone = "", quiet = TRUE, logfile = "")

Arguments

obs

Required. A CRHMr obs data frame.

timezone

Required. Timezone to be assigned to data.

quiet

Optional. Suppresses display of messages, except for errors. If you are calling this function in an R script, you will usually leave quiet=TRUE (i.e. the default). If you are working interactively, you will probably want to set quiet=FALSE.

logfile

Optional. Name of the file to be used for logging the action. Normally not used.

Value

If successful, returns a modified version of the obs data frame containing the adjusted datetime and all of the variables. If unsuccessful, returns an error.

Author(s)

Kevin Shook

Examples

regular <- makeRegular(BadLake7376, timezone = "CST")

CentreForHydrology/CRHMr documentation built on April 6, 2024, 5:27 p.m.