Displaying 1 result from an estimated 1 matches for "previous_idx".
Did you mean:
previous_id
2013 Jan 26
1
Setting global variables inside R reference class ?
Hello,
I'm a newbie to R, I have a quesiton.
I'm a bit confused on global variable assignments.
I have the following situation. I have 2 global variables current_idx and
previous_idx. *These 2 global variables have to be set by a method in a
reference class*.
Essentially, using <<- assignment operator should work right ? But, I get
this warning
Non-local assignment to non-field names (possibly misspelled?)
Where am I going wrong ?
Will assign(current_idx, index, envir...