Displaying 4 results from an estimated 4 matches for "zestimate".
Did you mean:
estimate
2011 May 28
1
newbie xml parsing question
...1 W Lafayette St, Norristown, PA_rb"
doc <-doc <- htmlTreeParse(url1, isURL=TRUE)
doc
I'd like to be able to pull the following information into R
href home details string :
/homedetails/236-Arundel-Ave-Horsham-PA-19044/9933810_zpid/#{scid=hdp-site-map-bubble-address}
value for Zestimate \ Price: $239,000
Beds : 3
Baths: 1.0
Sqft :1630
I noticed all that information is in "doc". The section of doc where the
information is contained is shown below. How do I go about extracting this
information and getting it into R for the general case where the address in
url will change...
2011 Jul 10
1
Help with tryCatch
Having a hard time understanding the help files for tryCatch. Looking for a
little help with the following statement which sits inside a for loop
zest[i] <- tryCatch(sapply(getNodeSet(zdoc, "//zestimate/amount"),
xmlValue), error=function() zest[i] <-"NA")
zest is a numeric vector
If the sapply statement evaluates to an error, I'd like to set the value of
zest[i] to NA and continue with the loop.
Suggestions ?
--
View this message in context: http://r.789695.n4.nabble.com...
2011 Jul 05
2
Stuck ...can't get sapply and xmlTreeParse working
...TRUE, isURL=TRUE)
############# problem line above ##################################
f$zpid <- sapply(getNodeSet(zdoc, "//result/zpid"), xmlValue)
f$zest.low <-sapply(getNodeSet(zdoc, "//valuationRange/low"), xmlValue)
f$zest <- sapply(getNodeSet(zdoc, "//zestimate/amount"), xmlValue)
rm(zdoc)
return(f)
}
j <-sapply(new.add, FUN=hm)
print(zest)
--
View this message in context: http://r.789695.n4.nabble.com/Stuck-can-t-get-sapply-and-xmlTreeParse-working-tp3644894p3644894.html
Sent from the R help mailing list archive at Nabble.com.
2011 May 30
1
Need help reading website info with XML package and XPath
...is for the general case where I manually change the address
by modifying the url (see code below). With the url containing the address,
I'd like to be able to extract the same information each time. The specific
information I'd like to be able to extract includes the homedetails url,
price (zestimate), number of beds, number of baths, and the Sqft. All this
information is shown in a bubble on the webpage.
I use the code below to try and do this but it's not working. I know the
infomation I'm interested in is there because if I print out "doc", I see it
all in one area. I'...