Compare commits

..

No commits in common. "229075d45d6fbc879ec660db8bad8972247e8b90" and "0c9c42b19acfe0da4090a160a18b32ebb5f09c69" have entirely different histories.

3 changed files with 11 additions and 10 deletions

View File

@ -4,21 +4,22 @@ author: 姓名
format: html format: html
--- ---
# 下载airquality.xlsx并读取数据
# 示例问题在R中输出`1+2+3+...+100`的结果
采用`for`循环完成,代码如下:
```{r} ```{r}
# 下载至临时文件 total <- 0
tmpxlsxpath <- file.path(tempdir(), "airquality.xlsx") for (i in 1:100) {
download.file("https://drwater.rcees.ac.cn/git/course/RWEP/raw/branch/PUB/data/airquality.xlsx", total <- total + i
destfile = tmpxlsxpath) }
airqualitydf <- readxl::read_xlsx(tmpxlsxpath, sheet = 1) total
metadf <- readxl::read_xlsx(tmpxlsxpath, sheet = 2)
``` ```
# 根据`airqualitydf.xlsx`按采样点统计白天8:00-20:00与夜晚20:00-8:00中空气质量指数AQI中位数按城市统计低于所有采样点AQI30%分位值的采样点占比列出上述占比最高的10个城市不考虑采样点数低于5个的城市 # 根据`airqualitydf.xlsx`按采样点统计白天8:00-20:00与夜晚20:00-8:00中空气质量指数AQI中位数按城市统计低于所有采样点AQI30%分位值的采样点占比列出上述占比最高的10个城市不考虑采样点数低于5个的城市
# 按照不同城市分组统计白天与夜晚AQI中位数是否具有显著差异。 # 按照不同城市分组统计白天与夜晚AQI中位数是否具有显著差异。

View File

@ -24,7 +24,7 @@ website:
page-navigation: true page-navigation: true
page-footer: "Copyright 2024, [Ming Su](https://drwater.rcees.ac.cn)" page-footer: "Copyright 2024, [Ming Su](https://drwater.rcees.ac.cn)"
navbar: navbar:
background: "light" background: "grey"
search: true search: true
right: right:
- icon: house - icon: house

Binary file not shown.