1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Intermediate R for Finance

Connected

अभ्यास

Function scope (2)

Let's try another one. Here, hundred is defined outside of the function scope, but is used inside of the function.

hundred <- 100

percent_to_decimal <- function(percent) {
    percent / hundred
}

What will percent_to_decimal(6) return?

निर्देश

50 XP

संभावित उत्तर