similar to: problem with package development and older defs earlier in search order

Displaying 20 results from an estimated 10000 matches similar to: "problem with package development and older defs earlier in search order"

2008 May 29
1
Separator argument in read.table
Hi, Suppose I have the following tabular data: 1729_at | TRADD | TNFRSF1A-associated via death domain | protein-coding 1773_at | FNTB | farnesyltransferase, CAAX box, beta | protein-coding 177_at | PLD1 | phospholipase D1, phosphatidylcholine-specific | protein-coding What is the right separator used for read.table function? I tried this: dat <-
2007 Jan 25
3
Error in loadNamespace(name) (PR#9464)
Full_Name: Ross Darnell Version: 2.4.1 OS: Linux Submission from: (NULL) (130.102.133.33) rdarnell at pc:~/Data$ ls -al .RData -rwxrwxrwx 2 root root 13551 2006-12-06 08:58 .RData rdarnell at pc:~/Data$ R R version 2.4.1 (2006-12-18) Copyright (C) 2006 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to
2011 Sep 08
3
Can't load workspaces
I've seen a number of issues with the loading of workspaces discussed previously, but here's another one... I simply can't load any saved workspace at all... Here's an example, starting with an empty workspace and creating a single variable "a". > a<-1:5 > save.image("a.Rdata") > rm(a) > load("a.Rdata") Error in function ()  : unused
2010 Mar 23
2
Saving tab/csv delimited data with NaN's
Hello, I am working multiple simulated data sets with missing values, I would like to store these data sets in either tab delimited format for .csv format with missing values marked as NaN's instead of NA's. I read the import/export document which mentions that write.table command converts NaN's to NA. Is there any other way I can store the NaN's. I tried the write syntax
2008 Apr 16
1
efficiently replacing values in a matrix
Hello all, I should probably know this by now... Anyway: I have a large matrix (dim(data) is 3000 18000). In each element are one of the following character strings "0/0", "1/1", "1/2", "2/2". I wanted to replace "0/0" with NA and the other three with 0,1,2 respectively. To accomplish just the first of these four steps I did this:
2016 Jul 27
3
Model object, when generated in a function, saves entire environment when saved
In the below, I generate a model from an environment that isn't .GlobalEnv with a large object that is unrelated to the model generation. It seems to save the irrelevant object unnecessarily. In my actual use case, I am running and saving many models in a loop that each use a single large data.frame (that gets collapsed into a small data.frame for estimation), so removing it isn't an
2016 Jul 27
2
Model object, when generated in a function, saves entire environment when saved
Another solution is to only save the parts of the model object that interest you. As long as they don't include the formula (which is what drags along the environment it was created in), you will save space. E.g., tfun2 <- function(subset) { junk <- 1:1e6 list(subset=subset, lm(Sepal.Length ~ Sepal.Width, data=iris, subset=subset)$coef) } saveSize(tfun2(1:4)) #[1] 152 Bill
2004 Sep 24
5
using tcltk in R under ESS/XEmacs on Windows
Sorry for the cross-post. Not sure where the problem is... A while back I posted an R function to R-help: cd <- function (dir = tclvalue(tkchooseDirectory()), saveOld = FALSE, loadNew = TRUE) { stopifnot(require(tcltk)) if (saveOld) save.image(compress = TRUE) setwd(dir) rm(list = ls(all = TRUE, envir = .GlobalEnv), envir = .GlobalEnv) if (loadNew &&
2018 Mar 22
3
GlobalEnv error
Dear all May I know how to solve this problem? I have encountered this problem after I have logged out from Rstudio. Thank you Warning: namespace ?caret? is not available and has been replaced by .GlobalEnv when processing object ?fit.ann? Warning: namespace ?ggplot2? is not available and has been replaced by .GlobalEnv when processing object ?p1? Warning: namespace ?plotly? is not available and
2004 Jul 30
1
Three-way ANOVA?
Hi, I'm a biologist, so please forgive me if my question sounds absurd! I have 3 parameters x1, x2, x3 and a response variable y.The sample size is 75. I tried to do the following: mylm<-lm(y~ x1 + x2 + x3, data="mydata") but i can only get stats from anova for the first 2 variables. The third comes up as NA. The degrees of freedom for the third variable are 0. Is there
2018 Mar 23
1
GlobalEnv error
Previously, the R software was perfectly run without error and I am not sure why this happens. I have not installed any new R. If the *RData file is the problem, what should I do? Thank you On Fri, Mar 23, 2018 at 7:58 AM, William Dunlap <wdunlap at tibco.com> wrote: > You haven't given much context, but these error message can come from > load() when loading a *.RData file that
2018 Mar 22
0
GlobalEnv error
You haven't given much context, but these error message can come from load() when loading a *.RData file that contains objects reference packages not installed in the current installation of R. When R starts it will load a ".RData" file if one exists, this file is typically created when R shuts down and you ask it to save the current session. If you recently upgraded R you the
2004 Jul 15
3
More on global environment
To follow up on my previous question, suppose a user R session wants to unload one workspace and load another within an R session. Is the following the correct sequence? 1. save.image() to save the current workspace as .Rdata in the current working directory. 2. rm(list=ls()) to remove everything from the workspace. 3. setcwd("xxx") to set the new working directory. 4.
2001 May 10
4
Passing a workspace file as argument
What is the best way (if possible) to pass the name of a workspace file to R when it starts so it is loaded instead of .RData ? I would like to know this for Linux and windows version. For windows I would like to associate the .RData extension so doubleclicking the file starts R and loads it. Thanks -- Victor Moreno V.Moreno at ico.scs.es Servei
2011 Jul 28
3
Looping through data sets to change column from character to numeric
Greetings to all -- I am having a silly problem that I just can't solve. Someone has given me an .RData file will hundreds of data frames. Each data frame has a column named ResultValue, currently character when it should be numeric. I want to loop through all of the data frames to change the variable to numeric, but I cannot figure out how to do it. My best guess was along the lines of:
2010 Jan 06
1
MakeActiveBinding help needed
Hi, I wanted a Q&D way to open a new graphics window but keep the focus in the console window (under Windows and the Rgui), so I wrote a line into my Rprofile.site file as follows: invisible(makeActiveBinding('newdev', function(...) dev.new(restoreConsole=T), .GlobalEnv)) (That is all on one line, incase the mailer re-parses it). This gives me a command "newdev" which
2004 Sep 22
1
attaching to position 1
If an attempt is made to attach to position 1, it appears to work (not even a warning) but in fact it doesn't work as many would expect. "search" thinks that it gets placed in position 2, but nothing is actually there (according to "ls"). This is guaranteed to be confusing (and annoying) to people who are used to attaching to position 1 in S-PLUS. I'm not clear on
2000 Jun 02
1
problem loading packages (PR#559)
Dear R team, I had a strange problem that appeared suddenly, and which I'd like to to mention in case it is of interest (although I suspect that I may have unwittingly done something dumb: if so please accept my apology) > library(ctest) ## or any package other than "oz" that I tried Error in as.character(table) : Object ".Dyn.libs" not found > traceback() [1]
2006 May 25
1
save() saves extra stuff if object is not evaluated
Hi, it looks like save() is saving all contents of the calling environments if the object to be saved is *not* evaluated, although it is not that simple either. After many hours of troubleshooting, I'm still confused. Here is a reproducible example (also attached) with output. I let the code and the output talk for itself: peek <- function(file, from=1, to=500) {
1998 Jul 08
1
Serious bug in save.image
I am using a package which tends to crash R, so I have been saving my work at regular intervals with "save.image()". Unfortunately, this overwrites .RData with an empty workspace, so when R crashed I lost my workspace and a day's work. The problem is easily fixed: "save.image" looks like this function () save(list = ls(), file = ".RData") The expression