Can you access variables from inside functions?
Suppose you ran this code in a fresh R session.
x_plus_y <- function(x) {
x + y
}
y <- 7
x_plus_y(5)
यह अभ्यास पाठ्यक्रम का हिस्सा है
Introduction to Writing Functions in R
इंटरैक्टिव व्यावहारिक अभ्यास
हमारे इंटरैक्टिव अभ्यासों में से किसी एक के साथ सिद्धांत को व्यवहार में बदलें
अभ्यास शुरू करें