Description Usage Arguments Value Note See Also

View source: R/getMonthlyMean.R

@author Emanuele Cordano, Emanuele Eccel

1 2 3 |

`data` |
a dataframe containing daily data. |

`year_min` |
start year |

`year_max` |
end year |

`station` |
character vector of the IDs of the station where the data are requested |

`no_date` |
logical value if |

`origin` |
date corresponding to the first row |

`yearly` |
logical value. If |

a matrix containing the requested monthly means where each month corresponds to a row and each station corresponds to a column or a list of such matrices in case the monthly mean values are calculated separately for each year (if `yearly`

is `TRUE`

)

The input data frame `data`

must have the following fields: `year,month,day,variables_ID1,variables_ID2,...`

where the fields `,variables_ID1,variables_ID2,...`

contain the daily variables referred to the respective stations and the field names are replaced with the respective station ID. In case `yearly`

is `TRUE`

the returned output is a list of matrices whose names are the corresponding year.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.