View source: R/get_head_stats.R
| get_head_stats | R Documentation |
Calculate summary statistics for multi-level hydraulic head data, categorized by site and port, and summarized over time.
get_head_stats(vars = NULL, by_port = FALSE)
vars |
'character' vector. One or more variable names for which to compute summary statistics. Choices include: "total_head_va" is the hydraulic head in feet above the North American Vertical Datum of 1988, "temp_va" is the fluid temperature in degree Celsius, "baro_va" is the atmospheric pressure in pounds per square inch absolute (psi), and "press_va" is the absolute fluid pressure in psi. By default, all variables are included. |
by_port |
'logical' flag. Whether to compute statistics according to a sites monitoring port. Defaults to grouping by site only. |
A data frame with the following variables:
var_dsVariable description.
var_nmVariable name as specified in the vars argument.
site_nmLocal site name for a MLMS well.
port_nuIdentifier for the valved measurement port,
included only if the by_port argument is set to true (not the default).
nSample size, which is the number of records in a given sample that contain finite values.
nnaNumber of missing values that were stripped before the statistic was computed.
start_dtStart date for the period of record.
end_dtEnd date for the period of record.
durationDuration of the record period, measured in years.
meanArithmetic mean of the variable values.
sdStandard deviation of the variable values.
minMinimum of the variable values.
qu_1stFirst quartile of the variable values.
medianMedian of the variable values.
qu_3rdThird quartile of the variable values.
maxMaximum of the variable values.
J.C. Fisher, U.S. Geological Survey, Idaho Water Science Center
get_head_outliers function may be used to identify fluid pressure outliers.
d <- get_head_stats()
str(d)
d <- get_head_stats(vars = "press_va", by_port = TRUE)
str(d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.