Displaying 5 results from an estimated 5 matches for "wx1".
Did you mean:
0x1
2011 Sep 21
2
Weighted Average on More than One Variable in Data Frame
...would like to compute the weighted average by group.
df <- data.frame(x1 = c(15, 12, 3, 10, 10, 14, 12),
x2 = c(10, 11, 16, 9, 7, 17, 18),
g = c( 1, 1, 1, 2, 2, 3, 3),
w = c( 2, 3, 1, 5, 5, 2, 5))
wx1 <- sapply(split(df, df$g), function(x){weighted.mean(x$x1, x$w)})
wx2 <- sapply(split(df, df$g), function(x){weighted.mean(x$x2, x$w)})
The above code works, the result is:
> wx1
1 2 3
11.50000 10.00000 12.57143
> wx2
1 2 3
11.50000 8.0000...
2005 Jul 15
3
Java
Hi everyone,
I'm a newbie to centos and having trouble upgrading java's jdk1.4 to jdk1.5.
I assume I have to get the jdk from jpackage, but I'm having trouble
locating it, let alone finding any instructions on how to upgrade. Much
appreciated if anyone can help. Thanks!
2005 Aug 02
2
rpmbuild question.
I am attempting to build from a src.rpm (knowing very little about
rpm at all) and the spec file notes that the architecture should be
set on the command line:
> # platform defines - set one below or define the build_xxx on the
command line
Now. My question is this, how does one do this using rpmbuild?
The syntax rpmbuild --target centos4 package.src.rpm seemingly has
no effect.
2006 Oct 17
1
Trouble syncing Palm via USB
Hi,
I'm having trouble getting my Palm to sync with jpilot on my Centos
system via USB. When I sync, I get this error in jpilot:
pi_accept Illegal seek
Exiting with status SYNC_ERROR_PI_ACCEPT
Finished
I have jpilot syncing fine with this Palm over the network, BTW. For
USB, I set things up for udev as described on various websites. Here
are the relevant ports & symlink (created
2007 Sep 10
3
php 5.2
Hi,
I was asking about php 5.2 because I would like to use this program with
these requirements:
http://www.magentocommerce.com/system-requirements
This ecommerce store is built with the zend framework and requires php 5.2.
Mcrypt is not in the centos mirrors either.
I did manage to get this beta ecommerce store installed on php 5.1.6-12 by
removing the mycript line in the install xml file and