Displaying 20 results from an estimated 4202 matches for "aggregates".
Did you mean:
aggregate
2011 Jan 11
2
aggregate.formula implicitly removes rows containing NA
The documentation for `aggregate` makes it sound like aggregate.formula should behave identically to aggregate.data.frame (apart from the way the parameters are passed). But it looks like aggregate.formula is quietly removing rows where any of the "output" variables (those on the LHS of the formula) are NA. This differs from how aggregate.data.frame works. Is this expected behavior?
2011 Feb 04
4
aggregate function - na.action
Can someone please tell me what is up with na.action in aggregate?
My (somewhat) reproducible example:
(I say somewhat because some lines wouldn't run in a separate session, more
below)
set.seed(100)
dat=data.frame(
x1=sample(c(NA,'m','f'), 100, replace=TRUE),
x2=sample(c(NA, 1:10), 100, replace=TRUE),
x3=sample(c(NA,letters[1:5]), 100, replace=TRUE),
2009 Nov 23
3
FUN argument to return a vector in aggregate function
Hi All,
I am currently doing the following to compute summary statistics of
aggregated data:
a = aggregate(warpbreaks$breaks, warpbreaks[,-1], mean)
b = aggregate(warpbreaks$breaks, warpbreaks[,-1], sum)
c = aggregate(warpbreaks$breaks, warpbreaks[,-1], length)
ans = cbind(a, b[,3], c[,3])
This seems unnecessarily complex to me so I tried
> aggregate(warpbreaks$breaks, warpbreaks[,-1],
2015 Aug 20
3
[RFC] Aggreate load/store, proposed plan
...lists.llvm.org> wrote:
> >
> > It is pretty clear people need this. Let's get this moving.
> >
> > I'll try to sum up the point that have been made and I'll try to
> > address them carefully.
> >
> > 1/ There is no good solution for large aggregates.
> > That is true. However, I don't think this is a reason to not
> > address smaller aggregates, as they appear to be needed.
> > Realistically, the proportion of aggregates that are very large is
> > small, and there is no expectation that such a thing would map
> &...
2005 Oct 12
2
functions available for use with aggregate?
What are the functions available for use with “aggregate”? Where can a reference to them be found?
---------------------------------
[[alternative HTML version deleted]]
2009 May 09
1
Improve aggregate.default ...?
Hi,
I find it a bit annoying that aggregate.default forces the returned
object to loose the 'name' of the variable aggregated, replacing it with
'x'.
A brief example:
> dat <- data.frame(A = runif(100), B = rnorm(100),
+ Group = gl(4, 25))
> with(dat, aggregate(A, by = list(Group = Group), FUN = mean))
Group x
1 1 0.6523228
2 2
2006 Mar 04
6
validation of aggregates
This may not be possible...
I have an aggregation of clwholename defined in my model.
the aggregation builds clwholename from :first_name, middle_initial,
last_name
and it generally works fine.
I am trying to add a validation so while there may be many ''John''
first_names, and ''Doe'' last_names, I only want one ''John Doe''
so I tried...
2015 Aug 20
2
[RFC] Aggreate load/store, proposed plan
...>
> Cc: "Mehdi Amini" <mehdi.amini at apple.com>, "llvm-dev" <llvm-dev at lists.llvm.org>
> Sent: Thursday, August 20, 2015 4:09:17 PM
> Subject: Re: [llvm-dev] [RFC] Aggreate load/store, proposed plan
>
> Problem :
>
> Many languages define aggregates and some way to manipulate them.
> LLVM define aggregates types (arrays and structs) to handle them.
> However, when aggregate are loaded or stored, LLVM will simply
> ignore these up to the legalization in the backend. This lead to
> many misoptimizations. Most frontend are using a set...
2015 Aug 21
3
[RFC] Aggreate load/store, proposed plan
...rely on SROA to generate
> something sensible. As it is going to do massive substitutions, I'm
> not sure InstCombine would be the right place to do it. Maybe its
> own pass ?
>
I think this might make more sense; it sounds closer to the transformation that Clang does for C-level aggregates, and should play nicer with SROA, etc. I'm not entirely sure where it should go, but feel free to prototype it as its own pass, and if it works well, we'll worry about pipeline placement.
>
> That wouldn't work for atomic/volatile, but I think that would work
> nicely for reg...
2015 Aug 20
2
[RFC] Aggreate load/store, proposed plan
It is pretty clear people need this. Let's get this moving.
I'll try to sum up the point that have been made and I'll try to address
them carefully.
1/ There is no good solution for large aggregates.
That is true. However, I don't think this is a reason to not address
smaller aggregates, as they appear to be needed. Realistically, the
proportion of aggregates that are very large is small, and there is no
expectation that such a thing would map nicely to the hardware anyway (the
hardware wo...
2003 Sep 20
4
using aggregate with survey-design and survey functions
Hi R users,
I am trying to use the aggregate function with a survey design object and
survey functions, but get the following error. I think I am incorrectly using the
syntax somehow, and it may not be possible to access variables directly by
name in a survey-design object. Am I right? How do I fix this problem? I have
used aggregate with "mean" and "weighted.mean", and
2009 Jul 28
2
aggregating strings
I am currently summarising a data set by collapsing data based on common identifiers in a column. I am using the 'aggregate' function to summarise numeric columns, i.e. "aggregate(dat[,3], list(dat$gene), mean)". I also wish to summarise text columns e.g. by concatenating values in a comma separated list, but the aggregate function can only return scalar values and so something
2012 Mar 02
4
Noob question - Identity argument within aggregate function?
>aggregate(z, identity, mean)
1 2 3 4 5
1.0 3.0 5.0 6.0 7.5
> aggregate(z, mean)
Error: length(time(x)) == length(by[[1]]) is not TRUE
Can someone help me understand the error above and why "identity" is
necessary to satisfy the error
--
View this message in context:
2007 Dec 16
2
question about the aggregate function with respect to order of levels of grouping elements
Hi,
I am using aggregate() to add up groups of data according to year and month.
It seems that the function aggregate() automatically sorts the levels of
factors of the grouping elements, even if the order of the levels of factors
is supplied. I am wondering if this is a bug, or if I missed something
important. Below is an example that shows what I mean. Does anyone know if
this is just the way
2016 Apr 17
2
Trying to understand cut
I am trying to understand cut so I can divide a list of numbers into 10 group:
0-9.0
10-10.9
20-20.9
30-30.9,
40-40.9,
50-50.9
60-60.9
70-70.9
80-80.9
90-90.9
As I try to do this, I have been playing with the cut function. Surprising the following for applications of cut give me the exact same groups. This surprises me given that I have varied parameters include.lowest and right. Can someone
2016 Oct 10
4
Pacaging/build issues with AIX and vac (dovecot-2.2.25)
On 10-Oct-16 06:45, Aki Tuomi wrote:
> Does your build end at some particular point?
See **** DETAILS **** for in depth (I hope enough!) study/report.
>
> Aki
I would guess this is not "c99" way...
Making all in lib-http
source='test-http-auth.c' object='test-http-auth.o' libtool=no
DEPDIR=.deps depmode=xlc /bin/sh ../../depcomp xlc_r
2016 Oct 10
4
Pacaging/build issues with AIX and vac (dovecot-2.2.25)
On 09-Oct-16 22:51, Aki Tuomi wrote:
>>
>> Michael
>
> Does the compiler support C99 standard?
>
> Aki
Yes. Plus extended features. Key difference with GCC, e.g., are the
flags to the compiler, but autotools general manages those well.
Key difference with platform (well, of of) is that it is not GNU, and
how shared libraries are built. Again, libtool in particular,
2011 Jul 14
2
cbind in aggregate formula - based on an existing object (vector)
Hello!
I am aggregating using a formula in aggregate - of the type:
aggregate(cbind(var1,var2,var3)~factor1+factor2,sum,data=mydata)
However, I actually have an object (vector of my variables to be aggregated):
myvars<-c("var1","var2","var3")
I'd like my aggregate formula (its "cbind" part) to be able to use my
"myvars" object. Is it
2011 Feb 22
5
"aggregate" in R
Hi, R users,
I'm wondering how I can aggregate data in R with different functions for
different columns. For example:
x<-rep(1:5,3)
y<-cbind(x,a=1:15,b=21:35)
y<-data.frame(y)
I want to aggregate "a" and "b" in y by "x". With "a", I want to use
function "mean"; with "b", I want to use function "sum". I tried:
2007 Jul 25
3
aggregate.ts
Consider the following scrap of code:
> x<- ts(1:50,start=c(1,11),freq=12)
> y <- aggregate(x,nfreq=4)
> c(y)
[1] 6 15 24 33 42 51 60 69 78 87 96 105 114 123 132 141
> y
Error in rep.int("", start.pad) : invalid number of copies in rep.int()
> tsp(y)
[1] 1.833333 5.583333 4.000000
So we can aggregate into quarters, but we cannot print it using