如何使用 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