is-dot 函数
现在,您将学习如何使用 "is-dot" 函数。本练习中,您将使用 weekends(一个包含 2019 年所有周末日期的向量),并根据 is-dot 函数的检测结果,完成一个逻辑表达式。
weekends 对象和 lubridate 包已为您加载。
本练习是课程的一部分
R 中的时间序列数据处理
练习说明
- 输入正确的 "is-dot" 函数,使 if 语句能够打印成功信息。
交互式实操练习
通过完成这段示例代码来试试这个练习。
# Use the correct is-dot function to print the statement below
if (___) {
print("You found the class of the weekends object!")
}