search for: subtotals

Displaying 20 results from an estimated 20 matches for "subtotals".

Did you mean: subtotal
2006 May 12
3
optimal way to compute matrix subtotals?
Hi! I have large matrices, one column per variable and I have a vector of factors / grouping symbols. Then I am computing subtotals for the groups but it takes pretty long and thus I wanted to ask if there is a better way to do it or if this is already the best way: subTotals <- function(x, groupvec) do.call("rbind",lapply(split(x,groupvec),colSums,na.rm=T)) Thanks reading my question and any hints! Werner -...
2012 Oct 17
3
subtotals based on price bands?
...seq2) #Prices Prices = sample(1:1000, 200, replace=F) #corresponding size for the given price above. size = sample(1:1000, 200, replace=F) How would I find the subtotal of the size based on a given price falls within a band? -- View this message in context: http://r.789695.n4.nabble.com/subtotals-based-on-price-bands-tp4646473.html Sent from the R help mailing list archive at Nabble.com.
2013 Apr 19
5
how to subtotal by rows
Dear R-users, I have a dataset as like below, and I want to subtotal the values of rice,wheat and maize by year for each fid. fid      year     rice     wheat      maize ------------------------------------------------ 1        1995      5        NA           NA 1        1995      NA        3           NA 1        1995      NA       NA           2 1        1996      4        NA           NA 1  
2015 Oct 05
2
Swift to IR, generates wrong IR
Hi, I have a simple swift code from which I generate IR code with ‘swiftc test.swift -emit-ir -o test.ll' When I try to run the .ll file or apply optimization with opt, I get errors like this one: lli: test.ll:548:110: error: expected instruction opcode %9 = cmpxchg i64* bitcast (%swift.type*** @field_type_vector_TipCalculator to i64*), i64 0, i64 %8 seq_cst seq_cst
2008 Oct 02
2
aggregate empty row for pretty appearance also subtotal if possible
...N 3 2 A Y 2 3 4 B N 420164905 I need to format a series of aggregates by multi dimensions and I wanted to break the data by empty row between group 1 that people can see some space. Also is there a way to add subtotals by group 1 into the mix : Group.1 Group.2 x 1 A N 3 2 A Y 2 3 5 4 B N 420164905 5 420164905 original data...
2015 Oct 05
2
Swift to IR, generates wrong IR
Hi, 2015-10-05 11:49 GMT+02:00 Rinaldini Julien via llvm-dev <llvm-dev at lists.llvm.org>: > Sorry, the error is (the previous one was from Apple’s lli): > > Documents/strong.codes/code/build/obfuscator-llvm/bin/opt: test.ll:57:203: error: expected comma after getelementptr's type > @_METACLASS_DATA__TtC4test13TipCalculator = private constant { i32, i32, i32, i32, i8*, i8*,
2006 Feb 26
2
subtotal, submean, aggregate
Dear All, I would like to make partial sums (or means or any other function) of the values in intervals along a sequence (spatial transect) where groups are defined. For instance: habitats<-rep(c("meadow","forest","meadow","pasture"),c(10,5,12,6)) observations<-rpois(length(habitats),2)
2017 Oct 25
11
[OT] Bash help
I know this is for CentOS stuff, but I'm at a loss on how to build a script that does what I need it to do.? It's probably really logically simple, I'm just not seeing it.? Hopefully someone will take pity on me and at least give me a big hint. I have a file with two columns 'email' and 'total' like this: me at example.com 20 me at example.com 40 you at domain.com
2008 Jan 23
3
How to do more advanced cross tabulation in R?
Hi, I am trying to reproduce some functionalities of Excel pivot table in R, sadly, I couldn't figure out how to do it. I am wondering if this is even possible in R. Does anyone know? Here is an example: year=rep(2003,16) quarter=rep(1:4,each=4) sales=1:16 company=rep(c("a","b","c","d"),4) df=data.frame(year,quarter,sales,company) #this is the
2008 Jan 26
3
Comparison of aggregate in R and group by in mysql
Hi, netters, First of all, thanks a lot for all the prompt replies to my earlier question about "merging" data frames in R. Actually that's an equivalence to the "join" clause in mysql. Now I have another question. Suppose I have a data frame X with lots of columns/variables: Name, Age,Group, Type, Salary. I wanna do a subtotal of salaries: aggregate(X$Salary,
2005 Dec 14
9
Passing quantity in a shopping cart
I am using this line on my index.rhtml page to capture the quantity required of a particular item for a basic shopping cart app: <%= text_field ''line_item'', ''quantity'', {:size=>3} %> </td> but my next screen (a cart screen) doesn''t reflect what was entered in that text field when the item is added to the cart. That is,
2017 Oct 25
0
[OT] Bash help
On Oct 25, 2017, at 10:02 AM, Mark Haney <mark.haney at neonova.net> wrote: > > I have a file with two columns 'email' and 'total' like this: > > me at example.com 20 > me at example.com 40 > you at domain.com 100 > you at domain.com 30 > > I need to get the total number of messages for each email address. This screams out for associative
2003 Aug 02
0
Webalizer for CDR logs....
I'm currently working on a perl script convert csv logs to a http log equiv: LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" Right now I have output something similar to this: 111 - - [02/Aug/2003:16:39:15 -0500] "GET /300 HTTP/1.0" 200 6144 "sipext" "ANSWERED" INCOMING - -
2006 Jul 30
1
manova and table of means by factor levels
...from SAS, I am specifically looking for the R equivalent of the "by" command in PROC GLM. 2) Create a table of means that, for each level of factor B, shows the interaction of factors A and C. Thus, I need to manipulate summary.formula or another table-generating program to produce subtotals. If that is not possible, is there another way to avoid generating and binding multiple subsets into one table? I have searched the R-help archives and the internet, but to no avail. The closest posting that I have found is: http://tolstoy.newcastle.edu.au/R/help/05/04/3239.html. Would someone...
2017 Oct 25
2
[OT] Bash help
Although "not my question", thanks, I learned a lot about array processing from your example. ----- Original Message ----- From: "warren" <warren at etr-usa.com> To: "centos" <centos at centos.org> Sent: Wednesday, October 25, 2017 11:47:12 AM Subject: Re: [CentOS] [OT] Bash help On Oct 25, 2017, at 10:02 AM, Mark Haney <mark.haney at neonova.net>
2006 Jun 02
1
prototype patch submissions
I''ve recently submitted two patches (#5122 and #5266) to the Rails trac. These patches are actually for Prototype. There appears to be very little discussion about Prototype on this list, but I wanted to share what I''ve been doing in the hopes of soliciting some feedback from you folks. If this isn''t the right place to discuss Prototype, mea culpa - where should I
2004 Oct 01
4
CDR_Oracle anybody?
...plans for my clients individually. I want a billing run to either calculate this - with appropriate lookups, or I want this to be done on the database side, populating a secondary cdr table of some sort- so the report writer run just pulls stuff out of one table and does nothing more complex than subtotals - simple and easy. The reasons I'm frustrated are as follows: 1) MySQl cannot do stored procedures or triggers, or even views. For this reason I can't just add a cdr_billing table and pull in City & State from the NDA/NXX table, et al, on the fly as a call is hung up. (or various oth...
2009 Feb 10
0
Dataframes: conditional calculations per row [SOLVED].
> Thank you very much Jorge, Phil and David: I was finally able to > perform the operations I needed. I changed the function in order to > adapt it to the simplest form like the following: > ali <- function(Abase) { > alitemp <- ((Abase/llmcc$Clase)*PClase)+(((1/llmcc > $Categoria)*Abase)*PCategoria)+((Abase*llmcc$Phi)*PPhi)+((Abase*llmcc > $Rf)*PRf) >
2008 Oct 22
0
newbie Syntax questions: Re-Calculating expansion factors
...es should I be using? What is the syntax for the type of calculation I'm trying to do? How should I specify my new X1 target data file so I can use it efficiently? Does this make any sense? Thanks in advance, ******************************** PS My preliminary dataframe subtotals look something like this: > InitX1Sums <- xtabs(~tripid_nu+lineon data=SurveyData) > InitX1Sums lineon tripid_nu Warner Center De Soto Pierce College Tampa Reseda Balboa Woodley Sepulveda Van Nuys Woodman Valley College Laurel Canyon North Hollywood 9011880...
2006 Jan 02
9
Generating nice tables
Making tables in templates is pretty easy, except for one minor problem. They tend to be fairly ugly. If you have a model with three attributes, it''s very easy to create an html table that looks like this.. Col1 Col2 Col3 A B D A B E A C F A C G Which becomes difficult to read when you have a lot of repeated data. What I would really like to generate