1. 学习
  2. /
  3. 课程
  4. /
  5. Introduction to Writing Functions in R

Connected

练习

Do variables exist?

If R cannot find a variable in the current environment, it will look in the parent environment, then the grandparent environment, and so on until it finds it.

rsa_env has been modified so it includes capitals and national_parks, but not population.

说明

100 XP
  • Check if population exists in rsa_env, using default inheritance rules.
  • Check if population exists in rsa_env, ignoring inheritance.