Displaying 20 results from an estimated 4206 matches for "aggreg".
Did you mean:
aggree
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 dif...
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(...
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, warpb...
2015 Aug 20
3
[RFC] Aggreate load/store, proposed plan
...ere more to do
> than what is proposed in http://reviews.llvm.org/D9766 ?
>
> So basically the proposal is that *InstCombine*
I think that fixing this early in the optimizer makes sense (InstCombine, etc.). This seems little different from any other canonicalization problem. These direct aggregate IR values are valid IR, but not our preferred canonical form, so we should transform the IR, when possible, into our preferred canonical form.
-Hal
> turns aggregate
> load/store into a load/store using an integer of equivalent size and
> insert the correct bitcast before/after, righ...
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...
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 wan...
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...
2015 Aug 21
3
[RFC] Aggreate load/store, proposed plan
...t the optimizer gets confused when
> the struct has some. That's a bummer but that is already improving
> things, so I'd rather have that than nothing.
>
> Alternatively, I think I have, in theory only so far, that may be
> better. The idea is to create an alloca, memcpy the aggregate in it,
> and transform extract values into loads, and insertvalues into an
> optional memecy into a new alloca (if the old value is still alive
> after the insertvalue) + a store. There is some extra trickery one
> need to do for call arguments, ret and phi nodes, but overall, I
>...
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
hardwar...
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 w...
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 like "aggregate(dat...
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: http://r....
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...
2016 Apr 17
2
Trying to understand cut
...ng told!
Thank you,
John
values <- c((0:99),c(0.9:99.9))
sort(values)
c1<-cut(values,10,include.lowest=FALSE,right=TRUE)
c2<-cut(values,10,include.lowest=FALSE,right=FALSE)
c3<-cut(values,10,include.lowest=TRUE,right=TRUE)
c4<-cut(values,10,include.lowest=TRUE,right=FALSE)
cbind(min=aggregate(values,list(c1),min),max=aggregate(values,list(c1),max))
cbind(min=aggregate(values,list(c2),min),max=aggregate(values,list(c2),max))
cbind(min=aggregate(values,list(c3),min),max=aggregate(values,list(c3),max))
cbind(min=aggregate(values,list(c4),min),max=aggregate(values,list(c4),max))
You can...
2016 Oct 10
4
Pacaging/build issues with AIX and vac (dovecot-2.2.25)
...; and "char*" is not allowed.
"test-http-auth.c", line 28.33: 1506-022 (S) "data" is not a member of
"const struct http_auth_challenges_test".
"test-http-auth.c", line 28.41: 1506-026 (S) Number of initializers
cannot be greater than the number of aggregate members.
"test-http-auth.c", line 29.33: 1506-022 (S) "params" is not a member of
"const struct http_auth_challenges_test".
"test-http-auth.c", line 30.43: 1506-026 (S) Number of initializers
cannot be greater than the number of aggregate members.
"...
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 &...
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",...
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
print...