search for: michaelyb

Displaying 5 results from an estimated 5 matches for "michaelyb".

2012 Apr 26
8
understanding the FUNCTION function
Hello, I am trying to understand why the FUNCTION used in several codes, won't create the object after it finishes running the code. For instance, look at the following: Number<- function(x) {MyNumberIs<-x} When I run Number(5) Everything goes well, except that if I try to call the object MyNumberIs, I won't find it. I understand that this function can assume many parameters,
2012 Feb 29
2
Using a FOR LOOP to name objects
Hello, I am trying to use a for loop to name objects in each iteraction. As in the following example (which doesn't work quite well) my_list<-c("A","B","C","D","E","F") for(i in c(1:length(my_list))){ url<- "http://finance.yahoo.com" doc = htmlTreeParse(url, useInternalNodes = T) tab_nodes = xpathApply(doc,
2012 Apr 24
2
Use quotes on a FOR LOOP R
Hello All! I need some help to get a FOR LOOP to print the interactor with the quotation mark. Let me be more specific: I have the following: cbind("Michael","Dana","Rob")->LIST outcome: [,1] [,2] [,3] [1,] "Michael" "Dana" "Rob" UNFORTUNATELY, I need to do the following: as.data.frame.list(LIST)->LIST2 rm(LIST)
2012 Apr 01
3
Filling empty List in a FOR LOOP
Hello all, I am trying to automate a list to be filled in a FOR LOOP. Basically I need to load info from a third source and store it into a list. This list goes to object "A"; The next list brought in by the LOOP goe to object "B".. os on ans so forth. When the iteration on the LOOP goes well (which means it isn't empty) I get something like this: A [[1]]
2012 May 16
1
Getting reliable financial ratios
Hello all, I am having some trouble finding a good csv file or even any kind of table with the financial ratios (i.e. P/E ratio, ROI, ROA etc.) from the Internet. I was able to find a good source with poor information. That wouold be Finviz.com. Another option would be creating a XML function loop to go through YahooFinance website, get the information and store it in a variable. This, however,