similar to: changing the value of a variable from inside a function

Displaying 20 results from an estimated 30000 matches similar to: "changing the value of a variable from inside a function"

2006 Dec 28
3
importing bitmap images to R
All - I'm creating some plots in R that I would like to overlay on images that are created outside of R. I've used "image" before to plot image-like data within R, and have added vector plots on top of them, but I can't find a way to read in an external bitmap file into R and use that. Currently the external files are .png's, but I could generate a few other types,
2008 Oct 16
3
central patch list
Is there a list somewhere of available updates for a given CentOS release? Something like this: https://rhn.redhat.com/errata/rhel4ws-errata.html Ideally I would like a something like: Bug Description Link to update 1111 kernel blah,etc http://some.rpm.com/1111.rpm -Mark -- Mark Belanger LTX Corporation
2005 Jan 31
1
naming list elements
All - Each time through a loop I create a new dataset, which I would like to append to a list object. Each item of the list should be the data matrix created in that step of the loop; I would like the NAME (or tag) of that list item to be assigned the value of a character string: I've tried something like this: running.list <- numeric(0) for(i in 1:num.files){ ..... running.list
2010 Jul 08
2
Vector Assignment -- Why won't it let me do it?
I have looked absolutely everywhere but I cannot figure out why my Mac will not let me create simple data vectors. > blah Error: object 'blah' not found > blah <- c(1, 2, 3) Error in c(1, 2, 3) : 'file' must be a character string or connection It used to work, and 6 months later I'm back on R, and now it will not work. Please help, guys & gals! -- View this
2013 Jan 16
0
[LLVMdev] RFC: auto-linking IR proposal
Hi Daniel, Nice to meet you. My understanding of the Microsoft #pragma comment(lib, ...) semantics is that each specified library will be converted into a directive that starts with "/DEFAULTLIB" in the COFF .drectve section. To demonstrate, the following patch produces directives that work with Visual Studio 2010 using the now-deprecated dependent library feature (commits r168779 and
2003 Aug 26
2
[LLVMdev] repeated recursion with "frozen" arguments
Hello Chris, Tuesday, August 26, 2003, 11:02:45 PM, you wrote: >> there is a very simple using case concerning LLVM and I am wondering >> whether it might be optimized at LLVM layer: >> >> //----------- >> int rec_func(int x, int y) { >> if(y<0) return x; >> return y + rec_func(x, y-1); // should we really push x? >> } CL> Probably not,
2007 Jun 28
2
img element inside div not accessible with $$() or getElementsBySelector
I can''t access an img inside a div using the $$() syntax. Using getElementsBySelector doesn''t work either. Both return empty arrays. I can access it with getElementById, however. <div id="foo"> <img id="image" src="blah.jpg"> <div id="bar" </div> - Using $$(''#foo img'') returns an empty array - Using
2003 Aug 27
2
[LLVMdev] repeated recursion with "frozen" arguments
Hi LLVM-devels, > Yup, I think I completely missed your point. :) funny, that if even so, I got two similar and concrete answers already: "it is suitable for LLVM, though not implemented yet" :) > > generally you are right. But only generally :) > > In particular, my example showed a feature of typical lexical closure. > > Can you explain more about what you
2016 Sep 26
2
Undocumented 'use.names' argument to c()
By "an argument named 'use.names' is included for concatenation", I meant something like this, that someone might try. > c(as.Date("2016-01-01"), use.names=FALSE) use.names "2016-01-01" "1970-01-01" See, 'use.names' is in the output. That's precisely because 'c.Date' doesn't have 'use.names', so
2010 Mar 23
2
rsync: connection unexpectedly closed (0 bytes received so far)
Please forgive my digging up a two year old thread, but I've got the same problem, but the pointers there give no help. This is using versions 3.0.6 (server) and 3.0.7 (client). Unfortunately, I have to type the client stuff in by hand. ("Secured" laptop with highlighting & copying disabled.) Anyway: $ rsync -vvvvvv -a -e ssh --recursive gdoc rsync-acct at 99.99.99.99::doc
2011 Aug 10
3
[LLVMdev] (no subject)
Hi,      I am interested in getting llvm IR only for a subset of the input source code - basically starting from a specified top level function, including all its callee functions (recursively).      For example, in the following code, I am interested in a command like "extract -top_function blah()" that will create an llvm IR with just blah() and foo().       int foo() {          
2006 Jan 20
1
form_tag and multiple buttons inside problem
Hi, I have a bit of a problem with a form in rails. Well, the problem really is me not fully understanding the mechanism of the form_tag, so here''s what i try to do: The idea is to present a some edit fields for some @product attributes and then present a table showing the @product.pieces (pieces for every @product) and to include a "Edit Piece" and "Delete Piece"
2006 May 11
2
Adding user name to production log?
All, In the production log I have entries like: Processing OpportunityController#new (for 68.213.19.251 at 2006-05-11 10:18:36) [GET] Session ID: 345b455a2a36af8814081c388d8726f1 Parameters: {"action"=>"new", "controller"=>"opportunity"} Rendering within layouts/opportunity Rendering opportunity/new Completed in 0.02281 (43 reqs/sec) |
2007 Jul 10
18
Recursive permissions
Does anyone know if it''s possible to do the following: Given the directory structure: /foo/bar /foo/bar/<bunch of stuff> Is it possible to set /foo/bar to, say 555, and all stuff below to 440 or the directory equivalent? Thanks, Trevor
2011 Aug 10
0
[LLVMdev] extracting sub-program using specified top level function name
fixing missing subject line in original email. ----- Forwarded Message ----- From: Ananth Durbha <avdurbha at yahoo.com> To: llvm list <llvmdev at cs.uiuc.edu> Sent: Tuesday, August 9, 2011 11:38 PM Subject: Hi,      I am interested in getting llvm IR only for a subset of the input source code - basically starting from a specified top level function, including all its callee
2008 Dec 18
1
understanding recursive functions
I'm trying to understand the use of recursive functions described on page 45 of An Introduction to R by the R core development team. A function is a list of expressions, which all get executed with only the last being assigned to a global variable, right? So if a function refers recursively to itself, it should simply start with the first expression and go from there. At least that is my
2006 Mar 17
6
Updated the xml code to be more object-oriented
I changed the code to be more prototype-esque, and created a class called XMLDoc. I may add more functionality to it later, hence the more generic name, but you do something like this to convert XML to a hash: XMLDoc = Class.create(); Object.extend(XMLDoc.prototype, { initialize: function (xmlDoc) { this.element = xmlDoc; }, asHash: function () { if (! this._xmlHash) {
2004 Feb 01
1
can a variable be redefined within extensions.conf
Can I define a variable in globals like this: [globals] timeout=60 and then in another context, redefine that same variable and only have the new value affect the call that hit that particular extension ? [example] exten => _9NXXXXXX,1,DBget(blah/blah) exten => _9NXXXXXX,102,Goto(3) exten => _9NXXXXXX,2,SetVar(#timeout=20) exten => _9NXXXXXX,3,Dial(${PSTN},${EXTEN:1},${timeout})
2009 Apr 21
1
line wrap in R console under windows
I would like the R console to wrap lines at 80 cols. It does not do so, even though I have used the Rgui Configuration Editor to set the Console cols at 80 and the Pager cols at 80. Please tell me how to set it up so I have word wrap. Just to be clear: in older/other R versions, console input is wrapped at 80 cols and so you have something that looks like > blah blah blah blah blah blah blah
1997 May 09
2
R-alpha: R-0.49 / S-plus: "default argument evaluation" bugs and woes
There is a problem with 'default argument evaluation' when I use an existing function name as argument name : sintest <- function(x, y = 2, sin= sin(pi/4)) { ## Purpose: Test of "default argument evaluation" ## -------- Fails for R-0.49. Martin Maechler, Date: 9 May 97. c(x=x, y=y, sin=sin) } ## R-0.49: R> sintest(1) ##> Error in sintest(1) : recursive