statByStation | R Documentation |
Calculate summary statistic by station
statByStation(df, stat = "mean", station = "loc_code", vbl = "result")
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 |
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.