similar to: copying objects

Displaying 20 results from an estimated 10000 matches similar to: "copying objects"

2002 Jun 21
1
naming things in functions
Hello, I'm working with R version 1.5.0 in Windows. I've written a function (SummaryMat, segment below) which uses a loop to repeatedly call another function (PercentsMat, segment below). PercentsMat creates a matrix and adds rows to it each time it is called. I use deparse(substitute(...)) to get the names of the lists sent to PercentsMat to use them as row names in the generated
2005 Nov 23
8
getting started, reading listing and saving data
Dear List I am new to R and to the list and will try best as I can be clear and concise. My apologies if anything I write contravenes the posting code on this list. I would also like to say I have run through most of the material on the R website before writing this email however, I am stuck. Here is what I want to do and what I have done 1. Read a comma seperated text file into R I have used
2006 Oct 18
1
selectively load some objects from old workspace
Dear Listers: I have a question on loading objects from workspace: suppose I have two workspaces for two approaches. My old workspace has some objects I need for the new workspace but I don't want to load the whole old workspace and remove most of the old objects and get what I want. Is there an easier way to do like this: load "some needed obj" from old workspace, which has been
2006 Mar 10
1
To improve my understanding of workspaces
Hello. I have grown accustomed to the .Data directory in S-Plus and so when I came to R I continued that behaviour by saving my workspaces at the end of each R session. So, I have saved workspaces in various directories where I have used R just as I would have had various .Data directories where I had used S-Plus. I have seen comments on the list, most recently from Prof. Ripley that they
2005 Jan 24
1
Deleted objects keep coming back
Having a very strange and frustrating problem with v2.0.1 under Mac OSX 10.3. I have several closely related workspaces in the same directory that I need to keep separate from one another (there are a few objects common to all workspaces, and then there are other objects that store the results of different analyses on the common objects, which is why I need separate workspaces). When I
2004 Oct 22
6
How to save a complete image of the current state of R ?
Hello, I like to save the complete state of R, i.e. including all environments, objects/workspaces, loaded packages etc.. This wish has arisen since I am not able to reproduce an error which occurs when running R CMD check. Many thanks for your advice in advance. Best Regards Andreas
2012 Nov 08
3
problem with package development and older defs earlier in search order
Hi, I have a problem with a package I have developed in that functions do not get loaded due to older versions of the functions being in the .GlobalEnv? fetched from .Rdata files stored from previous saved workspaces. I need to be able to fix this somehow when I load the package. I do not want to mess up the search order to fix the problem. How I got myself into this mess is that I started
2018 Oct 15
2
sys.call() inside replacement functions incorrectly returns *tmp*
Kia Ora > Although I'm not sure what problem it would solve... Given that you asked, I was interested in writing a multiple assignment function as a replacement function, so something like: massign (x, y, z) = construct.some list () Obviously, that's not possible. Probably the best example I can think of is converting cartesian coordinates to polar coordinates. Then we might have
1999 Mar 03
1
Directories
I am using r0.63.2 for Windows. This seems like it should be a FAQ but I couldn't find it in the R FAQ. If I want to have different workspaces for different projects how do I arrange for R to restore a workspace from a directory other than the one where the executable is, automatically on startup? Is it possible, or do I have to save the workspace in the right directory then manually restore
2016 Nov 13
2
Missing objects using dump.frames for post-mortem debugging of crashed batch jobs. Bug or gap in documentation?
Dear R friends, to allow post-mortem debugging In my Rscript based batch jobs I use tryCatch( <R expression>, error = function(e) { dump.frames(to.file = TRUE) }) to write the called frames into a dump file. This is similar to the method recommended in the "Writing R extensions" manual in section 4.2 Debugging R code (page 96):
2006 Nov 11
3
Gnome switcher and gnome windows list
Hello, am I the only one experiencing some bugs with the latest git checkout in the gnome switcher and gnome window list ? When I click on one of the workspaces on gnome's switcher the cube doesn't rotate, but the windows disappear. I don't know how to describe it well, but it seems like the 4 faces of the cube in compiz and my 4 workspaces on gnome-switcher are now totally unrelated
2006 Mar 10
2
appending objects to a file created by save()
Hi, I've been slowly transitioning to saving sets of objects for a project using save() rather than cluttering my workspace and then doing save.image() However, sometimes after I have done say: save(x,y,z, file='work.Rda') and I reload it a little later and I see that I also want to save object p. Currently I need to do: save(x,y,z,p, file='work.Rda') Is there any way
2010 Oct 06
4
Problems with Xen Tools instalation
Hello, when I try to install Xen-Tools using the xs-tools.iso I get the error: Errors were encountered while processing: /mnt/visostore/Linux/xe-guest utilities_0.5.0-579_i386.deb I used the xs-tools. iso present in the installation CD XCP and I followed the steps on page 28 (To install the guest agent) of XCP Virtual Machine Installation Guide: I mounted the xs-tools. iso and I executed the
2006 Jun 21
26
Implementing a boolean "switch" in a Class
I need a single boolean which would be "globally" accessible to all instances of a class. Seems like the boolean should be in the class prototype, but I was troubled by the difficulty of setting the prototype boolean to true. Maybe I''m missing something? var MyObject = Class.create(); MyObject.prototype = { bSwitch: false, ... other methods and properties } var oMyOb1
2006 Aug 04
2
RoR: recognizing a defined class
Hi all, I am very new to Ruby and I have a silly question: how do I get RoR to "recognize" that I just defined a class? To be more explicit, I have a controller and view, and then I want to create a class and get the controller to "see" it. So, I created a file called "myobject.rb" in the models/ directory and inside it defined "class myobject [...] end".
2004 Jan 05
3
Heeeeeelp! Estimatet Marginal Means of ANOVA needed!
Hello! I urgently need to know if it is possible (and if so, how to do) to get the "Estimatet marginal means" from an ANOVA. Or explained more coplicated: It's about plants sewn in 2 densities & 2 patterns. The Variable is biomass and I also use a Covariate. There are highly significant differences between density & pattern but I don't know which of the 2 densities
2003 Oct 22
2
Automatically updating GLM object
Dear all, i generated several GLM objects, named myobject1 to myobject25. Now i'd like to update both of them. So i tried: for(ii in 1:25) { assign(paste("myobject.updated", ii, sep=""), update( myobject[ii] ,.~ + VAR2)) } Doesn't work I also tried to get all the names in a vector and update(names.myobject[ii],.~ + VAR2) Stiil doesn't work Any ideas
2007 Feb 09
5
switch metacity->compiz (compiz ignores its own settings)
I have configured compiz to use 1 workspace and 4 viewports and metacity to use 4 workspaces. When I start compiz while metacity was running it uses 4 workspaces and 4 viewports (ignoring the gconf settings). When I restart X so that compiz is started before metacity this does not happen (it uses what its configured for). bug or feature? if feature can it be disabled? switching
2017 Jun 07
1
Unable to map more than 4 workspaces to keyboard shortcuts on C7.
Hi, I have a new install of c7 with the gnome desktop. I run it with 12 workspaces. Normally I create the shortcuts so that ctrl+f1 maps to workspace 1 ctrl+f2 maps to f2, etc. When I goto applications -> settings -> keyboard -> shortcuts -> navigation, I only have the ability to define "Switch to workspace" 1 through 4. There does not appear to be a way to map keyboard
2009 Nov 23
1
OOP with Encapsulated Class Definitions
Hi all, I'm seeking feedback (good, bad or indifferent) in regards to developing (further) a new class system for R, that uses encapsulated class definitions (i.e. the method definitions are literally inside the body of the class definition). A working (however very rough and poorly tested) system is available in my R package "oosp" with documentation in the vignette