Displaying 2 results from an estimated 2 matches for "tradetyp".
Did you mean:
tradetype
2005 Jul 28
3
Help troubleshooting save
I done plenty of saves before in rails, but I must be missing
something simple with this. Can a fresh set of eyes take a look at
this and see why it is not saving:
def addcash(uid)
c = Trade.new
c.attributes = {"user_id" => uid,
"tradetype" => ''9'',
"cash" => 10000}
breakpoint
if c.save
breakpoint
flash[''notice''] = "Signup successful."
end
end
2012 Aug 28
3
date in plot, can't add regression line
...1 2009-02-11 55
35 2 2009-02-11 6
36 4 2009-02-11 4
37 8 2009-02-11 2
38 16 2009-02-11 8
39 1 2009-02-12 153
40 2 2009-02-12 6
The plot displays the x column as the yaxis and the date as the x axis, grouped by the tradetype column.
The timestamp column:
> class(tradeflavorbyday$timestamp)
[1] "POSIXlt" "POSIXt"
So in this case I want to plot tradetype 1 (method 1):
xdates <- tradeflavorbyday$timestamp[tradeflavorbyday$tradeflavor == 1]
ydata <- tradeflavorbyday$x[tradeflavorbyday$tradef...