keepGood: Keeps rows where there are some obs values

View source: R/keepGood.R

keepGoodR Documentation

Keeps rows where there are some obs values

Description

Removes rows where all values are missing, keeps the remainder.

Usage

keepGood(obs, quiet = TRUE, logfile = "")

Arguments

obs

Required. A CRHMr obs dataframe.

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 the dataframe containing all rows with any non-missing alues. If unsuccessful (including if there are only missing values in the original data), returns an error.

Author(s)

Kevin Shook

See Also

trimObs

Examples

BadLake.good <- keepGood(BadLake7376)

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