开始使用免费开始使用

报名参加本地的 union,all

现在,您可以把三个维恩图联系起来思考了。您能辨别 union_all()union()intersect() 之间的关系吗?

Venn Diagram of Set Operations

请依次尝试这三个函数,看看在将 asia_wb_combosimf_combos 比较时,每个函数返回的行数有何关系。

asia_wb_combosimf_combos 已为您加载。

本练习是课程的一部分

使用 dplyr 编程

查看课程

练习说明

  • asia_wb_combosimf_combos 的交集。
  • asia_wb_combosimf_combos 的并集。
  • 返回 asia_wb_combosimf_combos 的所有行(包括重复行)。

交互式实操练习

通过完成这段示例代码来试试这个练习。

# Intersect Asia World Bank data combos with IMF combos
___

# Union Asia World Bank data combos with IMF combos
___

# Give all rows in both Asia World Bank data and IMF combos
___
编辑并运行代码