Displaying 4 results from an estimated 4 matches for "transno".
Did you mean:
transco
2010 Jun 08
2
type conversion with apply or not
...tion on this list.
I have a data frame consisting of a (large) number of date columns, which are read in from a csv file as character string. I want to convert them to Date type. Following is an example, where the first column is of integer type, while the rest are type character.
> head(df)
TRANSNO TRANS.START_DATE TRANS.END_DATE DIVISION FASB
1 250897 7/1/2010 7/31/2010 PSTRUCT Z
2 250617 8/1/2010 8/31/2010 PSTRUCT Z
3 250364 4/1/2011 6/30/2011 PLR Z
4 250176 4/1/2011 6/30/2011 PLR Z
5 250176 4/1/2011...
2009 Jul 28
1
complex find
...values...
@debtor = Debtortrans.find(:all,
:conditions => ["trandate > ? and trandate < ? AND
debtortranstaxes.taxauthid = ?", @per1, @per.lastdate_in_period, "24"],
:include => ''debtortranstaxes'',
:select => ''debtorno, trandate, transno, ovamount'')
but this gives me an error...
NameError: undefined local variable or method `debtortranstaxes'' for
#<Class:0xb7a4e644>
so I change the conditions to
:conditions => ["trandate > ? and trandate < ? AND taxauthid = ?",
@per1, @per.lastdate_i...
2000 Mar 03
1
tapply, sorting and the heap
...hpux machine. (details below)
Can I pre-sort or something to prevent my error?
thanks,
John Strumila
john.strumila at corpmail.telstra.com.au
> gc()["Vcells","total"]
[1] 11796480
> gcinfo(TRUE)
[1] FALSE
> t1<-tapply(trace$elapsed,list(trace$pid,trace$hv,trace$transno),sum)
Garbage collection [nr. 11]...
104285 cons cells free (41%)
90082 Kbytes of heap free (98%)
Garbage collection [nr. 12]...
102205 cons cells free (40%)
90050 Kbytes of heap free (98%)
Garbage collection [nr. 13]...
103347 cons cells free (41%)
90131 Kbytes of heap free (98%)
Garbage collectio...
2009 Jul 29
9
partials...
...AND :end AND taxauthid IN (:ids)", {:begin => @per1, :end
=> @per2, :ids => @taxauthids}],
:joins => ''LEFT JOIN debtortrans ON debtortrans.id=debtortransid'',
:include => ''debtortrans'',
:select => ''debtorno, trandate, transno, ovamount, taxamount,
taxauthid'',
:order => ''trandate, transno'')
render :partial => ''reports/city_taxes_print.erb''
%>
but it only renders a blank page and there are quite a few things in
_city_taxes_print.erb that should be rendering.
d...