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)
Bu egzersiz
Introduction to Writing Functions in R
kursunun bir parçasıdırUygulamalı interaktif egzersiz
İnteraktif egzersizlerimizden biriyle teoriyi pratiğe dökün
Egzersizi başlat