Displaying 1 result from an estimated 1 matches for "modfn".
Did you mean:
mod_fn
2010 Oct 06
3
Assigning value to a vector from within a function
Hi all,
I am having trouble assigning a value within a vector using a variable
defined within a function. I suspect this has something to do with
namespaces but I cannot figure it out. Please reply directly to me if you
can help.
###begin code
#simple vector
test<-c(4,5,6)
#simple function to get a value from a vector
#works just like I would expect, has no problem indexing using the local