如何使用 sapply
本練習屬於課程
R 中級
練習說明
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# temp has already been defined in the workspace
# Use lapply() to find each day's minimum temperature
# Use sapply() to find each day's minimum temperature
# Use lapply() to find each day's maximum temperature
# Use sapply() to find each day's maximum temperature