similar to: Selectively Removing objects

Displaying 20 results from an estimated 1100 matches similar to: "Selectively Removing objects"

2009 May 20
4
Functions returning functions
Dear All: I have a question regarding the behavior of functions. Say I define a function that returns another function : A <- function(parameters) { # calculations w/ parameters returning 'y' tmpf <- function(x) { # function of 'y' } return(tmpf) } The value of the parameters are stored in an environment local to the function. Then I call x<- something
2011 Apr 03
2
converting "call" objects into character
Dear all, I would like to log the calls to my functions. I am trying to do this using the function match.call(): fTest<-function(x) { theCall<-match.call() print(theCall) return(x) } > fTest(2) fTest(x = 2) [1] 2 I can see "theCall" printed into the console, but I don't manage to convert it into a character to write it into a log file
2009 Feb 24
0
[LLVMdev] Broke my tail (call)
On Tuesday 24 February 2009 22:19:27 Arnold Schwaighofer wrote: > What i was trying to say is that if you have > > i32 a() { > %1 = tailcall b() > ret %1 > } > > > i32 b() { > %1 = tailcall c() > ret %1 > } > > i32 c() { > %1 = tailcall d() > ret %1 > } > > i32 d() { > ret i32 5 > } > > only d() will actually
2011 Mar 29
1
new syntax: bash-like pipe operator
Dear R Community, One thing that always bugged me about R is the abundance of multi-level nested statements, like: cumsum(ifelse(c(1,diff(v)),1,0)) because: a) you have to read them inside out as opposed to left-to-right b) in the console you always have to go back and type the parenthesis if you want to nest your statement I kind of like the UNIX pipe operator as a very good abstraction of a
2009 Feb 24
2
[LLVMdev] Broke my tail (call)
0, i32 %1) >> >> Note that if you have a series of sequential recursive tail calls this >> move will only performed once (at the bottom of the recursion, >> respectively when the recursion returns) so it's impact on performance >> should be minimal. > > Hmm, that makes it sound as though the moves between a tail call and the > following return are
2013 Mar 12
2
ls() with different defaults: Solution;
Dear useRs, Some time ago I queried the list as to an efficient way of building a function which acts as ls() but with a different default for all.names: http://tolstoy.newcastle.edu.au/R/e6/help/09/03/7588.html I have struck upon a solution which so far has performed admirably. In particular, it uses ls() and not its explicit source code, so only has a dependency on its name and the name of
2005 Aug 17
2
About R variable references
Hello Group, I could use an advice on how SEXP handles work. My aim is to implement a system where I initially set a few global variables that are used for communication between C and R code. Then I do some work with R code and periodically call a function of my own that will update the system state. Such a design is useful for many purposes (for GUIs to name one). I am not entirely sure that R
2009 Nov 05
2
[LLVMdev] Debug Information for LLVM 2.6 and TOT
Devang Patel wrote: > Hi John, > > On Wed, Nov 4, 2009 at 12:04 PM, John Criswell <criswell at uiuc.edu> wrote: > >> Dear All, >> >> 1) I recall reading somewhere that a few optimizations in LLVM 2.6 strip >> away debug information when such information interferes with >> optimization. Is this correct, >> > > Yes. > >
2008 Mar 31
1
How to give user a prompt before connecting thecall
Yes it is. I'm remote at the moment so I can't send you the code but google for mobile remote receiver and you'll find what you are looking for. Lots of people do it so they don't have calls to cell phones picked up by voicemail. Cheers dean -----Original Message----- From: Pete Kay <petedao at gmail.com> Sent: Monday, March 31, 2008 2:27 PM To: Asterisk Users Mailing
2005 Jun 11
1
tftp and symlinks
Here is what I had: root at shaz:/var/lib/tftpboot # ls -l total 1680 lrwxrwxrwx 1 root root 71 2005-06-11 11:17 pxelinux.0 -> /var/www/ubuntu-breezy/install/netboot/ubuntu-installer/i386/pxelinux.0 dr-xr-xr-x 2 root root 4096 2005-06-11 11:21 pxelinux.cfg drwxr-xr-x 2 root root 4096 2005-06-11 11:20 ubuntu-breezy and I got "File not found" kind of error on pxeboot -
2009 Oct 01
1
Is there a way to get info who disconnected the call into CDR?
Hei! Here's my problem. I have an Asterisk with SS7 and SIP trunks. Asterisk version is 1.6. I'm setting up a custom CDR fields and I was wondering is there a way to know who initiated a hangup? Asterisk must be aware of that info somehow, cause in queue_log, that info is present (completecaller, completeagent) Is there a way to get that info on the regular SS7 to SIP (and vica versa)
2004 Jun 23
2
[LLVMdev] weird issue with mem2reg, still
On Wed, 23 Jun 2004, Patrick Meredith wrote: > Somehow it fails with operand out of bounds when the number of operands > is 2 and I am asking for the second operand. Second meaning operand 1. Okay, so you have something like this: if (CallInst *CI = dyn_cast<CallInst>(...)) { ... = CI->getOperand(1); } Can you send in this snippet of code, the assertion, and the
2004 Jun 23
0
[LLVMdev] weird issue with mem2reg, still
Somehow it fails with operand out of bounds when the number of operands is 2 and I am asking for the second operand. ----- Original Message ----- From: "Chris Lattner" <sabre at nondot.org> To: <llvmdev at cs.uiuc.edu> Sent: Wednesday, June 23, 2004 4:24 PM Subject: Re: [LLVMdev] weird issue with mem2reg, should have guessed > On Wed, 23 Jun 2004, Patrick Meredith
2004 Jun 23
0
[LLVMdev] weird issue with mem2reg, still
void MetaSplit::handleProgramUses(Value *V){ if(!isa<BasicBlock>(V)) programValues.insert(V); if(User *U = dyn_cast<User>(V)){ User::op_iterator OB = U->op_begin(), OE = U->op_end(); for(; OB != OE; ++OB){ if(CallInst *CI = dyn_cast<CallInst>(*OB)){ Function *F = CI->getCalledFunction(); if(F == ii || F == fi || F == vi || F == di || F == ci
2006 Nov 19
2
improving barplot output
Hello, I was hoping for some advice on improving a barplot. Below is the syntax I have used. I wanted to do two things differently How would I alter the syntax so that (a) the y-axis finishes at 25 and not 20, and (b) 'past ideation' and 'pastwk ideation' are coloured blue and 'past attempt' & 'past wk attempt' are coloured red ? I was also curious as to
2005 Nov 30
3
Downcasing Legacy Table Column Names
I''m looking for the simplest way to *automatically* downcase the attribute names of Models mapped to legacy tables that use upper case. eg: class Workorder < ActiveRecord::Base set_table_name "WORKORDER" end which has "NAME" as an attribute can use "name" as an attribute. currently: workorder = Workorder.find(1) workorder.NAME # =>
2012 Feb 20
3
Confused: Inconsistent result?
This is copy & paste from my session: > xyz<-as.vector(c(ls(),as.matrix(lapply(ls(),class)))) > dim(xyz)<-c(length(xyz)/2,2) > > allobj<-function(){ + xyz<-as.vector(c(ls(),as.matrix(lapply(ls(),class)))); + dim(xyz)<-c(length(xyz)/2,2); + return(xyz) + } > xyz       [,1]              [,2]        [1,] "a"               "character"  [2,]
2009 Nov 05
0
[LLVMdev] Debug Information for LLVM 2.6 and TOT
Hi John, On Thu, Nov 5, 2009 at 8:43 AM, John Criswell <criswell at uiuc.edu> wrote: > Does the debug facilities in LLVM TOT, at present, maintain information > better than LLVM 2.6 (i.e., if a front-end puts the debug information in, > will the optimizations not take it out)?  Does the information that the > llvm-gcc front-end adds comparable to what llvm-gcc in LLVM 2.6 does?
2003 Jul 22
6
variable names
Dear helpers I want to use rpart several times in a loop to build a classification tree. My problem is that rpart needs a formula as argument and for that the variables need to have names and this doesn't happen in my case. Every iteration in the loop has a different dataset with several variables (ex. 38 or more) and so I can't type the names by hand every time. Is there any function
2010 Oct 05
0
Please help me simplify my manipulation and printing of function calls
Background: I use R for a fair-sized graphics program, intended for na?ve users. This works, but a less-na?ve user wants it to generate code producing the graphs that he can then modify (but which will not contain my numerous manipulations and attempts to discern what the user wants). Quite possibly this is a standard R activity, but I've been unable to find it; likely I have a mental