Displaying 20 results from an estimated 5000 matches similar to: "select one function from two of them in another function"
2009 Aug 27
1
select one function from two of them
Hi all, I have two functions called test1() and test2(). Now how do I
select one of them in test3()??
Say
test3<-function(func="test1"){
if (func=="test1"){
now.func<-test1()
}
else now.func<-test2()
}
I know this function I wrote does not right. Do anyone can tell me how to do
that for real?
Thanks a million
S.H.
--
2010 Jun 09
4
question about "mean"
Hi there:
I have a question about generating mean value of a data.frame. Take
iris data for example, if I have a data.frame looking like the following:
---------------------
Sepal.Length Sepal.Width Petal.Length Petal.Width Species
1 5.1 3.5 1.4
0.2 setosa
2 4.9 3.0 1.4
0.2
2006 Jun 17
5
Having trouble listing tiers of categories
I have categories and sub-categories in a table called "categories".
Every row has a "parent" field to note if the entry is the sub-category
of another (never goes deeper than 1 level).
So there might be something like this:
id | name | parent
1 Dog 0
2 Pug 1
3 Siamese 5
4 Shih Tzu 1
5 Cat 0
6 Wiener Dog 1
7 Persian
2008 Dec 28
3
Sendmail problem
I wish to add options to sendmail
INPUT_MAIL_FILTER(`spamassassin',
`S=local:/var/run/spamass-milter/spamass-milter.sock, F=T,
T=C:5m;S:4m;R:4m;E:5m')dnl
dnl MAILER(cyrusv2)dnl
INPUT_MAIL_FILTER(`greylist',
`S=local:/var/run/milter-greylist/milter-greylist.sock')
define(`confMILTER_MACROS_CONNECT', `j, {if_addr}')
define(`confMILTER_MACROS_HELO', `{verify},
2013 Apr 27
1
Loading of package RNetCDF fails
Dear Pavel Michna [maintainer of the package] (and copy to R-help
Mailing List)
When I try to load the package RNetCDF (after install from CRAN) I get
this message:
> library("RNetCDF",
lib.loc="/Library/Frameworks/R.framework/Versions/3.0/Resources/library")
Error : .onLoad a ?chou? dans loadNamespace() pour 'RNetCDF', d?tails :
appel : NULL
erreur : I/O error
2008 Sep 25
1
Bug while loading Package "tcltk" with R-2.7.2 (PR#13016)
Full_Name: Cyril Alegret
Version: 2.7.2
OS: Windows
Submission from: (NULL) (90.80.39.42)
An error occurs when I try to load the package "tcltk2_1.0-7" with R-2.7.2
(whereas it works with version 2.6.2).
Please find below the error message :
"> source("C:\\Data\\Travail\\Software&Method\\R\\Procs\\Chargement des
librairies.R")
Le chargement a n?cessit? le package
2011 Oct 11
1
How to run Rcmdr with OS 10.4?
I've installed Rcmdr package and it doesn't run
Here is the error message:
R version 2.9.2 (2009-08-24)
[R.app GUI 1.29 (5464) powerpc-apple-darwin8.11.1]
[Workspace restored from /Users/jfc/Documents/TravauxFR/.RData]
Le chargement a n?cessit? le package : tcltk
Chargement de Tcl/Tk... termin?
Le chargement a n?cessit? le package : car
Error in
2014 Jan 13
1
Need help with kernel, modules and headers
I need some help about kernels, modules and so on.
I've installed CentOS6.5 (fresh install) on a DELL E7440 laptop. After all the
updates I get the latest kernel: kernel-2.6.32-431.
But with this config I've a problem: If I close the screen on the keyboard, the
laptop hibernate. When I open it the system restart (I connect use ssh to reach
the laptop) but the screen remains black
2008 Apr 16
2
Question about yaml. Thank you !!
Hi friends:
I tried to convert a model object to yaml(use to_yaml method), and after
that, I would like to convert the yaml(string type) back to the model
object. But when I use YAML::load to do that, it failed, the return
object''s class is Yaml class, not my prior model class.. Please tell me
how can I do to convert yaml to an object as the prior model class, or
how can I access the
2010 Jul 12
4
wine and ms money 97
Hello,
I use ubuntu 10.04 LTS - le Lynx Lucide and wine 1.1.42 (windows not
installed and application default parameters : win98).
i've tried to install microsoft money 97 that seems to work correctly
(100% ok) until the end of the process when the following message (in
french) appears :
"la tentative d'enregistrement automatique de SCHANNEL.DLL dans la base
de registres du
2017 Jun 19
2
Question about disabling '3dnowprefetch' CPU feature in Xen Guest using libvirt
Dear All,
I'm reaching this mail-list to ask a small question about disabling
'3dnowprefetch' CPU feature in Xen Guest using libvirt.
This is my environment:
Fedora release 26 (Twenty Six)
4.11.0-0.rc3.git0.2.fc26.x86_64
xen-4.8.1-2.fc26.x86_64
libvirt-3.2.1-1.fc26.x86_64
I can disable '3dnowprefetch' CPU feature in guest via 'xl' command,
2004 Jul 31
3
Asterisk on Sparc64
Ming-Wei Shih wrote (Re: [Asterisk-Users] Best Linux for
Asterisk)
> I am running * CVS head on Gentoo/i586
> and Gentoo/Sparc64 (US60 2x450/1GB RAM),
> they are running great.
>
> On sparc64 * does not compile out-of-the-box,
> some hackings in the Makefiles are needed.
Great stuff.
Please, can you share your adjustments to the Makefiles
with the community?!
If you don't
2013 Jan 31
4
zfs + NFS + FreeBSD with performance prob
Hi all,
I''m not sure if the problem is with FreeBSD or ZFS or both so I cross-post
(I known it''s bad).
Well I''ve server running FreeBSD 9.0 with (don''t count / on differents
disks) zfs pool with 36 disk.
The performance is very very good on the server.
I''ve one NFS client running FreeBSD 8.3 and the performance over NFS is
very good :
For example
2012 Nov 30
13
Remove disk
Hi all,
I would like to knwon if with ZFS it''s possible to do something like that :
http://tldp.org/HOWTO/LVM-HOWTO/removeadisk.html
meaning :
I have a zpool with 48 disks with 4 raidz2 (12 disk). Inside those 48 disk
I''ve 36x 3T and 12 x 2T.
Can I buy new 12x4 To disk put in the server, add in the zpool, ask zpool
to migrate all data on those 12 old disk on the new and
2001 Jun 01
1
Export knfsd/ext3 on doubly patched kernel(knfsd/reiserfs) OK?
Hi - if I have a doubly patched kernel (2.4.5)
(1) Apply gkernel/CVS ext3 patches
(2) Apply Neil Brown/Reiserfs team knfsd and reiserfs patches
Will ext3 be exportable by knfsd (i.e. inherit automagically
the nfsd_operations thingies from ext2) or does it need further
patching?
--
Chan Shih-Ping (Richard) <cshihpin@dso.org.sg>
DSO National Laboratories
20 Science Park Drive
2001 Jun 04
1
Ooops output
Here's an oops output on 2.4.5 + CVS/ext3.
This happened while trying to do a mkinitrd (on RedHat 7.1).
ksymoops 2.4.0 on i686 2.4.5-2smp. Options used
-V (default)
-k /proc/ksyms (default)
-l /proc/modules (default)
-o /lib/modules/2.4.5-2smp/ (default)
-m /boot/System.map-2.4.5-2smp (specified)
kernel BUG at inode.c:934!
invalid operand: 0000
CPU: 1
EIP:
2001 Jun 25
1
Any issues with ext3-0.0.7 on 2.4.6-pre5?
Are there any issues with ext3-2.4-0.0.7 on 2.4.6-pre5?
The patch applies with offsets and no rejects.
[I need the export reiserfs by knfsd functionality of -pre3 onwards.
My intent for the test system is to protect all standard partitions /, /usr, /var
with ext3 (easier to revert to ext2 and do OS upgrades) and try a
mixture of ext3 and reiserfs for exporting of data and user home partitions.]
2001 Jan 29
1
Is ext3 kernel nfsd friendly?
This is prompted by two issues: Neil Brown on the
NFS list asking for file systems that users
want to export via NFS and the problems that
the other journaling filesystem reiserfs has with
knfsd.
As far as I understand reiserfs does not work with
knfsd so a patch is needed for the fs driver
to provide a callback to knfsd to allow the
fs driver to do some clever tricks with inodes. Neil's
2000 Jul 05
1
Openssh-2.1.1p2 BUG? X11 forwarding no longer works
BUG: X11 forwarding no longer works in Openssh-2.1.1p2.
I think this is due to the wrong sense of the test
in session.c:1372
session_x11_req(Session *s)
{
if (!no_port_forwarding_flag) {
debug("X11 forwarding disabled in user configuration
file.");
return 0;
}
It should be
session_x11_req(Session *s)
{
if
2000 Jul 05
1
OpenSSH-2.1.1p2: Is this misuse of strtok?
Is this a misuse of strtok() in OpenSSH-2.1.1p2?
readconf.c:process_config_line() calls strtok() to
parse config lines. When it finds oProtocol it calls
compat.c:proto_spec() which in turns uses strtok().
However on return of proto_spec(), process_config_line() calls
strtok() once more to (quoting from the source code)
/* Check that there is no garbage at end of line. */
But surely strtok()