Thank you all. Your solutions work. I suppose it doesnt matter whether I use coredata or not (at least for my current purposes). I have created a user-defined function and have saved it in a ".R" file in my current working directory. But now I'm not sure how to invoke this function. R complains that it cannot find the function.
If I copy and paste the function code into the R console and call it after that everything works fine. Is there a way to bring that function into memory by giving a path to its location? I imagine that I will have many user-defined functions written in their own '.R' files over time. Thank you all. -- View this message in context: http://r.789695.n4.nabble.com/pass-character-vector-in-instrument-field-of-get-hist-quote-function-tp3350779p3352344.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.