openair

How to calculate the annual average from time series data

自古美人都是妖i 提交于 2019-12-25 20:04:29
问题 I have one issue on calculating the annual average of my data. Here is my data (dt.select): head(dt.select) DATE SITE_ID TSO4 TNO3 TNH4 NSO4 61372 2000-01-07 ALH157 1.9873 3.3794 1.5214 0.2743 61369 2000-01-14 ALH157 1.9451 4.3169 1.4218 0.9190 61376 2000-01-21 ALH157 2.9216 4.7621 2.2883 1.1009 61371 2000-01-28 ALH157 2.9312 5.5041 2.4494 1.9243 67249 2000-02-04 ALH157 3.1832 7.7116 3.1407 0.9057 67244 2000-02-11 ALH157 5.1027 9.7623 4.6308 0.3478 tail(dt.select) DATE SITE_ID TSO4 TNO3 TNH4

R Markdown Shiny renderPlot list of plots from lapply

爷,独闯天下 提交于 2019-12-22 00:35:38
问题 I am developing an R Markdown Shiny document to: Subset a data frame to include the "date" column and some numeric data columns. The way the shiny user input is set up, you select radio buttons for the data columns to include, then hit the "Subset Data" button to create d() - NO PROBLEM:) Generate a list of plots ( plotList ), one for each numeric data column (plotted against the date column). I am using the openair package timePlot function to generate the plots, and lapply to generate the

R Markdown Shiny renderPlot list of plots from lapply

雨燕双飞 提交于 2019-12-04 19:41:26
I am developing an R Markdown Shiny document to: Subset a data frame to include the "date" column and some numeric data columns. The way the shiny user input is set up, you select radio buttons for the data columns to include, then hit the "Subset Data" button to create d() - NO PROBLEM:) Generate a list of plots ( plotList ), one for each numeric data column (plotted against the date column). I am using the openair package timePlot function to generate the plots, and lapply to generate the list of plot objects ( plotList ) - NO PROBLEM:) use renderPlot to output all the plots in plotList to