Displaying 6 results from an estimated 6 matches for "zest".
Did you mean:
test
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 ?
--...
2011 Jul 05
2
Stuck ...can't get sapply and xmlTreeParse working
...quot;)
############## problem line is next #################################
zdoc <-xmlTreeParse(url.zill, useInternalNode=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-c...
2010 Mar 10
1
Joining elements of an array into a single element
Dear forum:
I've been trying like for hours but I cannot solve this. I wonder if you could give me a hand.
I would like to combine the following elements of an array which I must generate in order to get the syntax I need for another software, lets say:
c<-c(1:7)
zest<-c(12,34,45,132,56,23,6)
p<-"[foresnat2]"
for(i in 1:7){tre[i]<-paste("con(",p," == ",c[i],", ",zest[i],", ",sep="")}
[1] "con([foresnat2] == 1, 12, "
[1] "con([foresnat2] == 2, 34, "
[1] "con([foresnat2...
2006 Apr 18
12
Formatting data drawn from a DB
...a is entered into the DB its enter like so
from a text area:
1 1/2 lbs. beef top sirloin, thinly sliced
1/3 cup white sugar
1/3 cup rice wine vinegar
2 tablespoons frozen OJ concentrate
1 teaspoon salt
1 tablespoon soy sauce
1 cup long grain rice
2 cups water
1/4 cup cornstarch
2 teaspoons orange zest
3 tablespoons grated fresh ginger
1 1/2 tablespoons minced garlic
2 cups oil for frying
but when I draw it out of the DB and display it on the page it shows up
like:
1 1/2 lbs. beef top sirloin, thinly sliced 1/3 cup white sugar 1/3 cup
rice wine vinegar 2 tablespoons frozen OJ concentrate 1 te...
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 c...
2008 Sep 06
0
Tab control using FXRuby
...e scroller
does not scroll the form at all, the cursor moves to next field OK, but I
never get to see the off scrollwindow fields. If I enter some data, then
Tab, the scroller functions
and the next fields are displayed.
Thanks
==============================================
#!/usr/bin/env ruby
# zestaddr2.rb
# Generated by RubyFXGen.rb Ver 0.9a on :Mon Sep 01 17:20:31 +1000 2008
# plus added code to setup scroller
require ''fox16''
include Fox
class MainWindow < FXMainWindow
def initialize(app) super( app, ''Zest Address Entry'')
self.width = 422
self.heig...