statByStation: Calculate summary statistic by station

View source: R/miscFuncs.r

statByStationR Documentation

Calculate summary statistic by station

Description

Calculate summary statistic by station

Usage

statByStation(df, stat = "mean", station = "loc_code", vbl = "result")

Arguments

df

data frame containing the data

stat

statistical function to calculate. Mean is the default.

station

station field name, supplied as a string

vbl

field name numeric variable to summarize, supplied as a string

Value

a data frame with summary statistic by station


PDXChris/pmtools documentation built on Feb. 4, 2025, 11:14 a.m.