avr.day.night | R Documentation |
Returns a dataframe with energetic mean
avr.day.night(x, variable, period = "day", stat = "n_mean", ...)
x |
is a data frame |
variable |
is variable to apply function |
period |
is "day" or "night" |
stat |
is "n_mean" or "e_mean" like mean and energetic mean |
... |
another arguments |
dataframe of energetic mean values by night or daily period
Pasquale Scordino p.scordino@arpa.piemonte.it
Simone Sperotto s.sperotto@arpa.piemonte.it
# Calculate energetic mean in nightly period (22-06)
#data(exampleHourlyData)
avr.day.night(exampleHourlyData, "leq", period = "night",
stat = "e_mean")[1:5, ]
# Calculate energetic mean in daily period (06-22)
avr.day.night(exampleHourlyData, "leq", period = "day",
stat = "e_mean")[1:5, ]
# Calculate mean in daily period (06-22)
avr.day.night(exampleHourlyData, "leq", period = "day",
stat = "n_mean")[1:5, ]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.