摘要: ### subset 函数 airquality <- airquality #选取Temp大于80的行,保留Ozone,temp两列 subset(airquality, Temp > 80, select = c(Ozone, Temp)) #选取day等于1的行,删去temp列 subset( 阅读全文
posted @ 2021-12-24 11:19 西西与维奥拉 阅读(558) 评论(0) 推荐(0) 编辑
摘要: ifelse returns a value with the same shape as test which is filled with elements selected from either yes or no depending on whether the element of te 阅读全文
posted @ 2021-12-24 09:55 西西与维奥拉 阅读(559) 评论(0) 推荐(0) 编辑