शुरू करेंमुफ़्त में शुरू करें

Variable precedence 1

Consider this code, run in a fresh R session.

x_plus_y <- function(x) {
  y <- 3
  x + y
}
y <- 7

If you now call x_plus_y(5), what is the result?

यह अभ्यास पाठ्यक्रम का हिस्सा है

Introduction to Writing Functions in R

पाठ्यक्रम देखें

इंटरैक्टिव व्यावहारिक अभ्यास

हमारे इंटरैक्टिव अभ्यासों में से किसी एक के साथ सिद्धांत को व्यवहार में बदलें

अभ्यास शुरू करें