similar to: Can the by() function return a single column?

Displaying 20 results from an estimated 100 matches similar to: "Can the by() function return a single column?"

2011 Jan 06
3
weighed mean of a data frame row-by-row
Dear list, This must be an easy one. I have a data frame like this one: test.df <- data.frame(x1=c(2,3,5), x2=c(5, 3, 4), w=c(0.8, 0.3, 0.5)) and I want to construct a weighted mean of the first two columns using the third column for weighting; i.e. y[1] = x1[1]*w[1] + x2[1]*(1-w[1]) y[2] = ... One way to do this is to use a loop like test.df$y <-numeric(3) with(test.df, for(i in
2009 Sep 21
2
How to handle missing values for the GeneMeta package?
Hello all, It seems that the GeneMeta passage returns NA in the respective row if any gene in the data sets to be synthesised are missing. Do you know of a way to overcome this problem? I tried using the 'impute' package to fill-in the missing values, but R crashes if 'impute' and 'GeneMeta' packages are used together. I have asked a separate question for that. Thanks
2016 Sep 08
2
blazer_usb MEC0002 problem Fry's Electronics (Turbo-X) [HID PDC?]
> You could also try adding "-x usb_set_altinterface" to the command line > (or adding it to ups.conf). The lsusb output implies that the only valid > setting is 0 (bAlternateSetting), but it might need to be set explicitly. I checked with -x usb_set_altinterface and it says nut_usb_set_altinterface: usb_set_altinterface() should not be necessary - please email the
2005 Jan 09
2
X100P random hangups - Please help with suggestions
Thanks for the reply Bill. I am aware of the interrupts problem. To solve it I have already disabled my serial ports freeing up interrupts 3 and 4 and these are allocated to the two cards. This was done 2 months ago and has not solved the problem. Is there any way that something can wake up every now and then and generate these two interrupts? My current /proc/interrupts is as follows:
2016 Sep 15
2
blazer_usb MEC0002 problem Fry's Electronics (Turbo-X) [HID PDC?]
Hi again, > On Sep 8, 2016, at 10:05 AM, Vassilis Virvilis <vasvir at iit.demokritos.gr> > wrote: >> Now that's a problem. I am not sure that I can find >> >> 1) the original software >> 2) a (physical) windows machine in the vicinity of the UPS >> Ha! I jumped several hooks but I think I got it. 01. I contacted the store that sold us the UPS and
2004 Jul 04
1
Using call redirection numbers
Hello everybody, I am trying to setup asterisk to redirect international calls via a carrier which uses a fixed price tel number. The scenario is Dial 087..something (UK number) Pause for answer at the other end Send required telephone number 003..etc followed by # What is the easiest way of doing this? I have trouble with both the pause and adding the # at the end of the number. Best
2009 Sep 21
2
R crashes when packages 'impute' and 'GeneMeta' are used together.
Well, the title says all for this one. It seems to crash the R-console, so it happens whether I use the R-gui or R-console directly or Emacs with ESS. I have R 2.9.0 on Windows Vista. Thanks, Vassilis
2004 Aug 19
2
False Hangups on Asterisk
I have an asterisk server running on Redhat 8.0 with a Digium TDM400P w/4 FXO modules (TDM04P) There are 2 lines going into the Digium card. One line is a Vonage digital line, and the other line is a Comcast voice line. I have a SIP Grandstream 100 phone connected to the Asterisk server. I also have IAX configured with FWD. The problem is that on occasionally, after talking for about 20
2016 Sep 16
2
blazer_usb MEC0002 problem Fry's Electronics (Turbo-X) [HID PDC?]
A little deciphering > Looks like the ups always replies > 22 = 16035500 50005300 20004e00 6f002000 41006300 6b00 That is length = 0x16 = 22 type = 0x3 = string Message = "UPS No Ack" Very fun... Regards Vassilis Virvilis
2008 Oct 14
2
Multiple maildirs
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Is is possible to specify multiple maildir location in mail_location? (default_mail_env in my case since I'm using version 1.0.rc15/debian etch). What I want to achieve is receive mail in /var/spool/mail, which is going to contain 1 Maildir per user, and have /home/%u/Maildir/ to store (move) messages from spool location. Postfix is taking care
2009 Sep 21
9
Handling missing data
I have to remove missing data both in character and numeric datatype.I tried using NA condition but it is not working ,please help me to solve this. -- View this message in context: http://www.nabble.com/Handling-missing-data-tp25530192p25530192.html Sent from the R help mailing list archive at Nabble.com.
2005 May 23
3
module-init-tools ported to klibc
Halo, I don't know if this is already done but the following two patches (one for klibc) and a big one (several smaller incorporated to one) to modules-init-tools enables running modprobe and friends in early user space. There are some issues so I post here for discussion The porting strategy was copied from the udev package. I make a file mod_libc_wrapper.{c,h} in order to provide the
2013 Feb 18
3
Generating QFs from same sample
Dear All I am kind of stuck up with a code a part of which seems to be causing a problem, or at least I think so. May be the community can help me. It’s simple but I suppose I am missing something. I generate a data matrix X, say of order n*p, where n represents independent row-vectors and p correlated col vectors. Let the row representation be X = (X’_1, . . ., X’_n)’. I generate the
2004 Jun 27
1
Why? oh why can't I dial out?
I have been struggling with my Asterisk setup for 3 days now and I think I have done well...apart from the small detail that I cannot dial out on my phone (PSTN) line. My setup is: Suse Linux 9.0 1 fxo card connected to a BT(UK) line 1 Cisco ATA186 sip v3.0 with two analogue phones attached to it Asterix CVS-HEAD-05/30/04-06:56:31 with the UK Userid patch applied. Asterisk loads without any
2005 May 30
1
fnmatch, getopt_long for module-init-tools
Halo, fnmatch() and getopt_long are necessary to compile module-init-tools with klibc out of the box. Would you consider accepting patches to implement those 2 functions? Can we use the bsd libc functions? is the lisence acceptable to you? .bill
2005 May 30
1
patch: porting module-init-tools 2/4: index
This is tiny and has no impact in klib size other that it is polluting the namespace. .bill -------------- next part -------------- A non-text attachment was scrubbed... Name: patch-index-strchr.txt Type: text/x-diff Size: 355 bytes Desc: not available Url : http://www.vas.nu/pipermail/klibc/attachments/20050530/b7c96936/patch-index-strchr.bin
2006 May 15
1
howto to use klcc from a kernel tree?
Halo, I was wondering to no avail how to to use the klcc wrapper in order to build udev and module-init-tools. Does klibc has an install target when is embedded in the kernel tree? Is klcc available? .bill
2004 Sep 26
2
Asterisk <-> WellGate 3502a : ulaw/alaw only?
Greetings, I'm running latest * from CVS on FreeBSD 4.10 box. We've just bought several WellGate 3502A FXSes to play with till welltech guys fix the 3504a's registration bug. So far everything is working as expected, except the fact only ulaw and alaw codecs work with *. If I add allow=gsm or allow=g723.1 in FXS's ports entries in the sip.conf, no voice is heard from both
2005 Jul 16
1
BT / X100P impedance matching
I understand that the X100P card is matched to a 600 ohm impedance but the UK BT phone system is not (I haven't been able to find much information on the impedance of the UK system). Has anyone come up with an easy way to match the impedance between the two so the X100P can work in the UK? Presumably a simple transformer won't do the job since it won't pass the DC components? --
2004 Oct 02
1
Second X100P card won't work
Greetings all, I've just put two X100P cards to my box and despite trying everything I can find on the web, I can't get the second one to work. I've edited /etc/modules.conf so that ztcfg doesn't run automatically. To start, I run: /sbin/modprobe zaptel /sbin/modprobe wcfxo /sbin/ztcfg /sbin/modprobe ixj and ztcfg says: ZT_CHANCONFIG failed on channel 2: No such device or