Re: [R] Stuck ...can't get sapply and xmlTreeParse working

2011-07-04 Thread jim holtman
Probably this is what you want; convert the first column of 'new.add' to character and then use in the sapply. Now it seems to work in that data is read in, but the new error is that "f" is not defined. What is it supposed to be? > x <- as.character(new.add[[1]]) > z <- sapply(x, hm) Error in f$

Re: [R] Stuck ...can't get sapply and xmlTreeParse working

2011-07-04 Thread jim holtman
The value of 'url.zill' is a vector of 407 character strings: Browse[1]> str(url.zill) chr [1:407] "http://www.zillow.com/webservice/GetDeepSearchResults.htm?zws-id=X1-ZWz1bup03e49vv_5kvb6&address=10+PACER+LN&citystatezip=East+";| __truncated__ ... Isn't it supposed to be just a single file nam

[R] Stuck ...can't get sapply and xmlTreeParse working

2011-07-04 Thread eric
Can't seem to get the code below working. It gets stuck on line 24 inside the function hm; comments show the line in question. The function hm is called by sapply and is at the bottom of the code. Other stuff above line 24 works correctly including the first couple of lines of the function hm. Shou