Displaying 20 results from an estimated 100 matches similar to: "Asking help about drawing and saving candle chart automatically...."
2012 May 21
2
Error : can't dup NilClass, in Heroku
Hi,
The application is deployed on Heroku, is based on Ruby 3.2.1 and Rails
1.9.2. Sometimes a function of my props starts throwing this error "
StringUtils:dateTimeFromString, str , *can''t dup NilClass*" and I don''t
understand the cause. it''s my function:
require ''time''
module StringUtils
2011 Feb 09
1
Iterate over a list of input files?
Hi,
I've got the following code which seems to work fine for a single
file if I specify the file name explicitly in the code. What I need to
do is run it on all the files in the directory tested and augment the
data frame I'm building to have more results columns.How can I do
that?
Here's the code:
library(chron) # .Holidays / is.holiday / is.weekend
TStoDate = function
2007 Jul 18
5
Strange search result with conditions in find_by_contents
Hi, guys:
Strange search result with conditions in find_by_contents!
first of all, i''ve installed the acts_as_ferret to my project vender
folder by ''ruby script/plugin install
svn://projects.jkraemer.net/acts_as_ferret/tags/stable/acts_as_ferret''
in my SearchController
def searchforum
if !params[:doSearch].nil?
if params[:searchTerms].nil? || params[:searchTerms] ==
2012 Feb 22
4
Week number from a date
Hi
My data looks like this
startDate="2008-06-01"
dateRange =c( "2008-10-01","2008-12-01")
Is there any method to find the week number from the startDate range
-----
Thanks in Advance
Arun
--
View this message in context: http://r.789695.n4.nabble.com/Week-number-from-a-date-tp4410223p4410223.html
Sent from the R help mailing list archive at Nabble.com.
2007 May 02
4
Wrong total_hits when using conditions in find_by_contents
In my model Topic:
acts_as_ferret({ :fields => {:username => {:store => :yes, :boost =>
30}, :subject => {:store => :yes, :boost => 20}, :body => {:store =>
:yes, :boost => 10}}, :remote => true }, { :analyzer =>
Ferret::Analysis::RegExpAnalyzer.new(/./, false) })
def self.full_text_search(q, options = {}, find_options = {})
return nil if q.nil? or
2007 Jan 09
9
Date Approximation in Specs
The floating-point expectations allow for an error tolerance. Is
there any similar facility for dates? For example, say I have a
custom class that handles date/time spans and I want to spec it:
context "A DateRange span" do
specify "should know when a week ago is :)" do
d = DateRange.new
d.last_week.should_be_close_to(1.week.ago, 24*60*60)
end
end
The idea
2011 Aug 09
0
How to merge multiple 'having' clause relation in rails 3
If i remove any one of scopes having clause then the above action
works perfectly . Is there any way to like- @model =
Model.vacant_list(daterange) and then remove the active record
relation and then apply @model.amenity_type(term). I tried lots of
things but didnt find any solution for this.....
Full question listed here
2010 Feb 10
0
boxplot label cleanup
The boxplot below is close to what I would like, but needs some clean up.
I've been unable to address the following:
1) How can I use the full extent of the plot space (there is white space on
either side of the data)?
2) How can I reduce the # of month labels (e.g. every 3rd month Jan Mar
Jun...) but still keep them staggered?
3) The year labels at the top of the plot have been positioned
2013 Jan 28
2
R plot like candlestick
Hi all,
I'm new on this list so I greet all.
My question is: does exist in R a plot similar to candlestick plot but
not based on xts (time series)? I have to plot a range of 4 value: for
every item I have min value, max value and 2 intermediate values. I
would like plot this like a candlestick, i.e. with a box between 2
intermediate values and 1 segment between box and min value and a
segment
2005 Oct 09
1
Rmetrics fMultivar how to?
Hi Everybody,
I am a total beginner at this so please bear with me.
I downloaded by hand the file WIG20.txt (Warsaw Stock Exchange Index of 20
most important stocks). The format is this:
Name,Date,Open,High,Low,Close,Volume
WIG20,19940414,1000.00,1000.00,1000.00,1000.00,71600.000
WIG20,19940418,1050.50,1050.50,1050.50,1050.50,99950.000
WIG20,19940419,1124.90,1124.90,1124.90,1124.90,138059.000
2010 Dec 29
1
filling up holes
I have a data frame with three columns
client ID | date | value
For each cilent ID I want to determine Min date and Max date and for
any dates in between that are missing I want to insert a row
Client ID | date| NA
Any help would be appreciated.
2011 Dec 22
1
Trying to use chartSeries in quantmod
> colnames = c("date","price")
> data = read.csv(file="data.csv", sep=",", header=F, nrows=261, skip=5, col.names=colnames)
> library(quantmod)
> data
date price
1 2011-12-18 13.7825
2 2011-12-11 13.5500
...
...
...
259 2007-01-07 10.8256
260 2006-12-31 10.8531
261 2006-12-24 10.8169
# Here's where I would like to use
2009 Sep 17
1
Beginner Q- dates in the xrange?
Hi all- terribly beginner question here, but I can't figure out how to put
dates as the values for my x range in a plot. Example:
xrange <- results$current
yrange <- results$DIFF
plot(xrange, yrange, type="n", xlab="Date", ylab="Differential")
lines(results$DIFF, type="l", lwd=1.5, col="red")
Where xrange is:
> xrange
[1]
2010 Jan 22
4
How to seperate date and time into different columns?
Dear All,
I have a series of data in which the first column consist of a combination of date and time, for instance 17 April 2008 at 4.01pm, such data is recorded as:
4/17/2008 16:01
I'd like to seperate it into four different columns which consist of Day, Month,Year and Time, respectively.
Could someone please advice me on this mater?
Thank you,
Fir
2010 Nov 14
0
problem with chartSeries
Hi All,
I came across some trouble with this function when trying to plot intraday
data. I can't manage to plot candelsticks I get a line instead and I don't
understand why. I put below data sample and code.
> head(x)
open high low close
2010-10-27 08:59:59 13821 13824 13818 13824
2010-10-27 09:05:00 13823 13830 13823 13830
2010-10-27 09:09:59
2005 Feb 15
0
Re: card dialer phone (thanks for the info!)
Folks,
Thanks to Jerry Jones, David Josephson, John Novack, and George Cohn
for their posts about how a key system phone works. Now I'm starting to
scrounge around for a KSU so I can look into the Collector's Net work :-)
Most of the phones in the house are (fairly) new single-line analog
jobs; but, since "retro-telephony" is an amusing part of this hobby, it
seems only
2016 Apr 08
0
Is this a bug in quantmod::OpCl?
On 04/06/2016 07:58 PM, Joshua Ulrich wrote:
> On Tue, Apr 5, 2016 at 9:17 PM, James Hirschorn
> <james.hirschorn at hotmail.com> wrote:
>> OpCl works on xts objects but not on quantmod.OHLC objects. Is this a bug?
>>
> Thanks for the minimal, reproducible example.
>
> Looks like a bug. There's no as.quantmod.OHLC.xts method, so the zoo
> method is
2013 Sep 27
1
gráficos de cotizaciones
Comparto totalmente la sugerencia de Carlos Ortega. Si aún así quieres
gráficos de velas o gráficos OHLC el mejor paquete que puedes usar es uno
de temas financieros:
http://www.quantmod.com/
Ten en cuenta que en los mercados bursátiles tiene algún sentido usar ese
tipo de gráfico ya que en la apertura y mayormente en el cierre diario se
concentran operaciones.
Me imagino que esto no es así con
2005 May 12
3
Sarbanes-Oxley headaches
Hi there,
With the new scrutinization by auditors on account policies and
auditing, how can Samba be SOX compliant?
Using 3.0.14a-sernet on Suse 9.1 - ldapsam
Specifically, a couple of things seem to be lacking:
1) Logon/Logoff times are not being recorded
The last logon time recorded in my ldap entries are pre-nt4 migration.
2) Do the Audit Policy values in user manager have any effect?
Are
2016 Apr 08
0
Is this a bug in quantmod::OpCl?
On Fri, Apr 8, 2016 at 10:51 AM, James Hirschorn
<james.hirschorn at hotmail.com> wrote:
>
>
> On 04/06/2016 07:58 PM, Joshua Ulrich wrote:
>>
>> On Tue, Apr 5, 2016 at 9:17 PM, James Hirschorn
>> <james.hirschorn at hotmail.com> wrote:
>>>
>>> OpCl works on xts objects but not on quantmod.OHLC objects. Is this a
>>> bug?