similar to: as.missing

Displaying 20 results from an estimated 130 matches similar to: "as.missing"

2010 Feb 10
1
How to solve: Error in * unused argument(s) ?
Hi all, For some reason, I would like to use functions bellow (see example code bellow), but instead I get the following error message: *Error in foo2(...) : unused argument(s) (arg3 = 3)* #--------------------- # example code #--------------------- foo1 <- function(arg1,...) { print(arg1) foo2(...) foo3(...) } foo2 <- function(arg2) { print(arg2) } foo3 <- function(arg3) {
2006 Jun 30
1
foo2Args()
I was just considering trying to clean up the arguments to a function that calls other functions, and was playin with a suggestion Achim made during a conversation at useR. The idea is, instead of using list(), use a small function to construct and check arguments. My hope was to be able to do this without making it globally visible: foo <- function(x, args=foo2Args()) { foo2Args <-
2006 Jun 29
3
advice on arguments
I have a general style question about R coding. Suppose I'm writing a function (foo1) that calls other functions (foo2, foo3, ...) which have complicated argument lists (e.g. optim(), plot()), _and_ I may be calling several different functions in the body of foo1. Since foo2 and foo3 have different sets of arguments, I can't just use "..." ; I did write some code a while ago
2008 Mar 25
1
Passing (Optional) Arguments
Dear List: In short, I am writing a number of functions as building blocks for other functions and have some questions about scoping and passing arguments. Suppose I have functions foo1, foo2, and foo3 such that: foo1<-function(a=1,b=TRUE,c=FALSE){#do stuff}; foo2<-function(x=1,y=FALSE,z=c(1,2,3,4)){#do stuff}; foo3<-function(lambda,...){lambda*foo1()*foo2()}; I want to be able to
2003 May 17
1
problem building dvi and pdf documentation on Darwin 10.2.6
I just installed R-1.7.0 on Darwin 6.6 (a.k.a. MacOS 10.2.6). 'make' and 'make check' run without any problems. 'make info' builds with no complaints, but 'make dvi' and 'make pdf' fail. I get refman.dvi and refman.pdf OK (with some warnings from pdftex that some names are referenced that do not exist), but R-FAQ.{dvi,pdf} fails as shown below. Attempts
2007 Oct 29
5
Stuck Voicemails?
This question is about 1.2.x asterisk. Please no flames, or "you should upgrade to 1.4". Does anyone know what might be the cause for 'stuck voicemail's in 1.2.6asterisk? By stuck, I mean the phones show a voicemail, and if you log in you get "you have 1 new voicemail", and if you delete it it says 'deleted', however it remains. Going into the mail
2010 Oct 11
2
Why WOL? ( WAS: Re: Getting Wake on lan to work )
On a semi-related subtopic, Why do I want WoL? What concrete examples are there where it's useful? I understand what it is and how it works but the "why" has eluded me. -- Drew "Nothing in life is to be feared. It is only to be understood." --Marie Curie
2005 May 17
3
Blacklisting repeated login tries
Please CC jmc AT xisl.com on any reply as I'm not subscribed. We are getting several thousand login tries daily all from the same IP each try. It would be a great help to automatically refuse connections from a given IP after a certain number of failed login attempts. I was thinking of doing that myself but if anyone else is about to do it or has done it please let me know. Thanks. John
2006 Jul 31
3
Polymorphic associations and single table inheritance
Running into an interesting problem that at first glance appears to be a bug in the AR association code. However, it''s explicitly coded this way so I''m not so sure. I have some code like this: class Address < ActiveRecord::Base belongs_to :addressable, :polymorphic => true end class Person < ActiveRecord::Base has_many :addresses, :as => :addressable,
2007 Nov 11
1
Removing axes / frame from plot()
R Help Feel sure there is a simple answer to this but answer has eluded me so far. NB. Using R 2.6.0. I am plotting a simple chart using plot(): plot(df, ylim=c(as.numeric(min(df)), as.numeric(max(df))), col="OliveDrab", xlab="", ylab="") What I would like to do is have this chart appear such that there is only an x and a y axis. I do not want a frame around my
2003 Apr 07
3
Detecting Samba server from Windows?
Hi, I'm curious to know how I can programmatically differentiate between a Samba share and a Windows NT share from a Windows program. For both, GetVolumeInformation() claims the file system is "NTFS". This isn't very helpful. I need to be able to tell the two apart because "real" NTFS supports various things Samba's "simulated" NTFS doesn't, such as
2007 Sep 04
1
Variable scope in a function
Hello, I apologise in advance for this question; I'm sure it is answered in the documentation or this mailing list many times, however the answer has eluded me. I'm trying to write a function where I don't want external variables to be scoped in from the parent environment. Given this function: test_func = function() { if (exists("kat") == FALSE) {
2005 Jan 20
1
Samba PDC + LDAP without local Unix accounts?
Greetings, We are trying to use Samba 3.0.10 running on FreeBSD 5.3 to replace a legacy NT4 PDC. Our goal is to use LDAP to centralize all user information and authentication on the network. To that end, we've set up Samba to use LDAP for authentication of all the Windows users. This is working, but Samba seems to require that all Windows account have a matching Unix account as well. This
2006 Aug 17
1
powercom issues
And something else, that previously eluded from my thoughts:my "notifyme" script,i.e the script that is executed at an ups.status="OB" event, is: echo `date` >> /root/upsLog echo " No power, shutting down the system!" >> /root/upsLog sleep 30 control=`/usr/local/ups/bin/upsc Inform@localhost ups.status` if [ $control != OL ] then
2013 Feb 01
1
Wine release 1.5.23
The Wine development release 1.5.23 is now available. What's new in this release (see below for details): - HTTPS support no longer dependent on OpenSSL. - Support for event handling in the Mac driver. - A functional Netstat built-in application. - A bunch of C++ runtime math functions. - Various bug fixes. The source is available from the following locations:
2004 Jul 22
7
Re: Problems routing mail to particular interface
Is the 192.168.1.2 an ip on the router? If yes, you''ll have to mark in OUTPUT, not PREROUTING, also, after you set up the rules and routes, did you an ip route flush cache ? I hope these works On Wed, 21 Jul 2004 20:02:32 -0700, Jens <jens@pacificsun.ca> wrote: > I have a particular problem that has caused me grief for some time now and > even though the answer is probably
2005 Oct 07
2
Assign references
Folks, I've run into trouble while writing functions that I hope will create and modify a dataframe or two. To that end I've written a toy function that simply sets a couple of variables (well, tries but fails). Searching the archives, Thomas Lumley recently explained the <<- operator, showing that it was necessary for x and y to exist prior to the function call, but I haven't
2009 Feb 06
2
[patch] 'c' and 'd' in setacl
Hi Timo, Hi *, I just recognized that the new imap-acl plugin in dovecot 1.2 does not know the obsolete rights 'd' and 'c' when setting. According to RFC 4314 section 2.1.1.: If a client includes the "d" right in a rights list, then it MUST be treated as if the client had included every member of the "delete" right. and If a client includes
2011 Dec 16
0
Wine release 1.3.35
The Wine development release 1.3.35 is now available. What's new in this release (see below for details): - Triangular gradients and cosmetic wide pens support in the DIB engine. - All Wine dialogs can now be translated through po files. - Many more scripts added to UniScribe. - JScript using bytecode throughout now. - Several MSXML improvements. - Various bug fixes. The source
2012 Jan 07
3
Providing shared folders with multiple backend servers
Hi *, I am currently in the planning stage for a "new and improved" mail system at my university. Right now, everything is on one big backend server but this is causing me increasing amounts of pain, beginning with the time a full backup takes. So naturally, I want to split this big server into smaller ones. To keep things simple, I want to pin a user to a server so I can avoid