similar to: A suggestion to improve ifelse behaviour with vector yes/noarguments

Displaying 20 results from an estimated 600 matches similar to: "A suggestion to improve ifelse behaviour with vector yes/noarguments"

2005 May 31
2
A suggestion to improve ifelse behaviour with vector yes/no arguments
Dear All, I luckily found the following feature (or problem) when tried to apply ifelse-function to an ordered data. > test <- c(TRUE, TRUE, TRUE, FALSE, FALSE, FALSE, FALSE) > ifelse(test, 0, 1:4) [1] 0 0 0 4 1 2 3 > It roots into the ifelse-syntax: ans[!test & !nas] <- rep(no, length.out = length(ans))[!test & !nas] Would it be possible to disable this feature in the
2002 May 06
2
A logit question?
Hello dear r-gurus! I have a question about the logit-model. I think I have misunderstood something and I'm trying to find a bug from my code or even better from my head. Any help is appreciated. The question is shortly: why I'm not having same coefficients from the logit-regression when using a link-function and an explicite transformation of the dependent. Below some details. I'm
2005 Feb 21
1
its plot with pch-argument
Hi mighty R-gurus and other enthusiastics, I just encountered this: library(its) x <- its(sort(rnorm(10)), as.POSIXct(Sys.time() + 1:10)) plot(x, type = "p", pch = c(rep("A", 5), rep("B", 5))) Am I missing something if I expect that all the points labeled as 'A' should be below all those labeled as 'B'? Thanks, Jussi M?kinen platform
2003 Jan 29
0
Add-on bug? Win fracdiff failed from http://www.stat.unipg.it/stat/statlib/R/CRAN/ (PR#2505)
jussi.makinen@valtiokonttori.fi wrote: > Full_Name: Jussi M?kinen > Version: 1.6.2 > OS: Win2000 > Submission from: (NULL) (193.210.145.2) > > > I tried to download fracdiff from http://www.stat.unipg.it/stat/statlib/R/CRAN/ > but I got the messages box: That's not a current mirror of CRAN (see the CRAN Master for recent mirrors), it's last update seems to be
2004 Jul 01
1
QR decomposition question
Hi all, I wonder if this kind of questions are ok in this list... Quick question: What does it mean than the rank of the QR decomposition of a NxN matrix is N-1 ? m: NxN matrix qr(m)$rank equal to (N-1) Long version: I'm doing a manova on a matrix of 10 variables and 16 observations. > dim(tmp) [1] 16 10 > fit <- manova( tmp ~ treatment*mouse ) >results <-
2017 Nov 04
1
ans[nas] <- NA in 'ifelse' (was: ifelse() woes ... can we agree on a ifelse2() ?)
Removal of ans[nas] <- NA from the code of function 'ifelse' in R is not committed (yet). Why? -------------------------------------------- On Mon, 28/11/16, Martin Maechler <maechler at stat.math.ethz.ch> wrote: Subject: Re: [Rd] ifelse() woes ... can we agree on a ifelse2() ? Cc: R-devel at r-project.org, maechler at stat.math.ethz.ch Date: Monday, 28 November, 2016, 10:00
2010 Sep 28
4
Mailman - searchable archive
Mailman works well for our mailing lists, but the archive is unacceptable - the worst thing is lack of search function. I got one tip for this: 1) emails converted to html format with mhonarc 2) search can be done with htdig Opinions? Maybe there are better software solutions for this - I hope. - Jussi -- Jussi Hirvi * Green Spot Topeliuksenkatu 15 C * 00250 Helsinki * Finland Tel. +358 9
2008 Aug 21
3
Disk quotas for Sendmail
Hi, CentOS 5.x, Sendmail 8.13.8. I would like to start using disk quotas on my Sendmail server, and optimally they should be configurable by user or group. How can this be done? (I tried to google, but no success.) - Jussi -- Jussi Hirvi * Green Spot Topeliuksenkatu 15 C * 00250 Helsinki * Finland Tel. & fax +358 9 493 981 * Mobile +358 40 771 2098 (only sms) jussi.hirvi at greenspot.fi *
2007 Jan 19
2
Installing 4.4 - problem on 386
I tried installing with several options (noacpi noapm; noprobe; noprobe skipddc noacpi noapm nodma). Always I get the same error. BUT this is not in fac a CentOS problem at all, because I get the same error always when I boot from hd (Fedora Core), IF there is a CD in the CD-ROM drive. (I tried with CentOS 1/4, CentOS 2/4 and a HP printer software CD.) It must be something with the CD drive!
2010 Jan 04
2
Sendmail error: auxpropfunc error invalid parameter supplied
I just noticed this error in my messages log after restarting sendmail. The only change I have made is 1) manual fix in /usr/share/spamassassin/72_active.conf 2) sa-update (several times) Now the mail is not running ok, my mail queue keeps growing. Regards, Jussi Hirvi
2010 Oct 12
2
Openwebmail emergency (Perl)
After system update yesterday, Openwebmail now gives an error: > Undefined subroutine &Compress::Zlib::memGzip called at /var/www/cgi-bin/openwebmail/shares/ow-shared.pl line 1175. I tried to do perl -MCPAN -e shell install Compress::Zlib But it says Compress::Zlib is up-to-date. What do to?? I cannot find an answer by googling. - Jussi -- Jussi Hirvi * Green Spot Topeliuksenkatu 15
2011 Apr 27
2
Where is my qemu command?
KVM virtualization is full of wonders. :-/ I would need to attach an USB disk to a vm, but how? The command "qemu" would provide a way: [root at a134-224 yum.repos.d]# man qemu-kvm > QEMU(1) > NAME > qemu-doc - QEMU Emulator User Documentation > > SYNOPSIS > usage: qemu [options] [disk_image] (...) > -usbdevice devname > Add the
2008 Aug 15
1
Hard disk, format, filesystem
Ok, I give up... I have to ask. This is CentOS 5. I switched one of my raid1 disks, and I already thought I had succeeded. But now it seems that something is very wrong with the first partition on the new disk. Luckily my system is fully bootable with the other disk. Here's some info. The new disk is sdb. // I removed all partitions with parted, and created the first one again. // parted
2008 Feb 22
3
Problem with cut
Hi All, I might misunderstood how cut works. But following behaviour surprises me. vv <- seq(150, 346, by= 4) cc <- cut(vv, 12) cc[vv == 330] Results [1] (330,346] I would have expected 330 to fall into (313,330] category. Can you please advice what do I do wrong? Many Thanks, Jussi Lehto -------------- next part -------------- Visit our website at http://www.ubs.com This message
2008 Oct 30
3
[OT] List of all email users
This is not CentOS-specific, hence OT. I need a list of all email users on my system (there are hundreds of them). The list could be extracted from /etc/aliases and the virtusertable. Does anyone know of a script that would do this automatically? It would have to - exclude commented-out lines (of course) - exclude duplicates - produce a list of usernames (or maybe unresolved email addresses for
2009 Dec 16
5
Old hd, new machine
What should I do to make an existing CentOS (5.4) disc boot up on a new computer? I just made on CentOS 5.3 installation on that machine, so I know the hardware is compatible. Would it be enough to boot with a DVD in rescue mode, or boot with another hd, and install grub? - Jussi -- Jussi Hirvi * Green Spot Topeliuksenkatu 15 C * 00250 Helsinki * Finland Tel. +358 9 493 981 * Mobile +358
2011 Mar 31
3
Migrating standalone systems to KVM
A while ago I got great instructions from Pasi for migrating standalone systems to *xen*. However, now I have decided to use KVM instead, which raises a new question: How to migrate a standalone system to *KVM*? I know a two-step way to do it: standalone system -> xen pv guest xen pv guest -> KVM pv guest I read that xen -> KVM migration is trivially easy. But is there an easier
2011 Mar 29
4
VMware vSphere Hypervisor (free ESXi) and mdraid
Can I combine VMWare ESXi (free version) virtualization and CentOS mdraid level 1? Any pointers how to do it? I never used VMWare before. - Jussi -- Jussi Hirvi * Green Spot Topeliuksenkatu 15 C * 00250 Helsinki * Finland Tel. +358 9 493 981 * Mobile +358 40 771 2098 (only sms) jussi.hirvi at greenspot.fi * http://www.greenspot.fi
2011 Apr 11
1
KVM resources?
Later this week I will have to install a serious KVM setup, and I am looking for background material. I found a nice how-to: http://wiki.centos.org/HowTos/KVM ...but it is probably partly outdated by now. Then there is a fine virtualization manual: http://www.centos.org/docs/5/html/5.2/Virtualization/ ...but it seems to be only for xen. I plan to use either CentOS 5.6 or Scientific Linux
2010 Jul 02
1
File sharing solution
I would like to offer my isp clients a solution for sharing (big) files, basically on one-to-one basis. This is how I imagine it: - an anonymous or registered user can upload a file - on response (s)he will get a file-specific (or batch-specific) username/password - (s)he can send a link and un/pw by email - the receiver can download the file - the file will be automatically deleted from the