For example I'd like to storage my variables only in f() function with the function setObj(argument)
, whose argument is a list with a,b,c,d fields, for example.
f<-function(x){
setObj(argument=x)
(a+b+c+d)/4
}
So I can call my variables with their names, without subsetting from the list.
Thank you
I believe you are looking for
with
: