| statByStation | R Documentation | 
Calculate summary statistic by station
statByStation(
  dfm,
  stat = "mean",
  station = "loc_code",
  vbl = "result",
  cens = NULL
)
dfm | 
 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  | 
cens | 
 optional field name indicating whether the analyte was detected ('=') or not ('<')  | 
a data frame with summary statistic by station
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.