search for: saveold

Displaying 8 results from an estimated 8 matches for "saveold".

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 && file.exists(".RData")) { loaded <- load(".RDa...
2005 Sep 25
0
Tip: Working directory in titlebar
...rterm.exe and rgui.exe under Windows and with RECENT versions of R only. ----- For changing directories during a session, I use the following function, a slight modification of Andy Liaw's cd() function that also changes the titlebar: cd <- function(dir = tclvalue(tkchooseDirectory()), saveOld=NA, loadNew=TRUE) { # From Andy Liaw ... additions by MHP # Change the working directory during an R session # # First check that the tcl-tk package is available: stopifnot(require(tcltk)) # Print any error message from trying to load: if (.Platform$OS.type=="wind...
2009 Jun 29
2
Large Stata file Import in R
Hi I am using Stata 10 and I need to import a data set in stata 10 to R, I have saved the dataset in lower versions of Stata as well by using saveold command in Stata. My RAM is 4gb and the stata file is 600MB, I am getting an error message which says : "Error: cannot allocate vector of size 3.4 Mb In addition: There were 50 or more warnings (use warnings() to see the first 50)" Thus far I have already tried the following 1. By rig...
2009 Feb 02
0
"a binary read error occurred" in read.dta
I'm trying to read in a perfectly good Stata data file created using Stata 10 in Linux and saved in the version 8/9 format using "saveold". R fails to read in the file: aa<-read.dta("myfile.dta") Error in read.dta("myfile.dta"): a binary read error occurred If I resave the file in Stata using the "nolabels" option of saveold, I get: There were 50 or more warnings (use warnings() to see the...
2013 Oct 02
1
foreign package problem with stata 13
foreign package does not support dataset saved at stata 13. anyone knows any wayt to make it works? [[alternative HTML version deleted]]
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.
2004 Feb 10
3
how to get the GUI directory chooser on Windows?
Dear R-help, Can anyone tell me if it's possible to call up the "directory chooser" (the one you get when you click on "File" -> "Change Dir...") in Rgui from the R command line? Seems like file.choose() can't be used to choose a directory. This is in R-1.8.1 on WinXPPro. Any help much appreciated! Andy
2009 Jun 30
1
Stata file and R Interaction :File Size Problem in Import
Hi I am using Stata 10 and I need to import a data set in stata 10 to R, I have saved the dataset in lower versions of Stata as well by using saveold command in Stata. My RAM is 4gb and the stata file is 600MB, I am getting an error message which says : "Error: cannot allocate vector of size 3.4 Mb In addition: There were 50 or more warnings (use warnings() to see the first 50)" Thus far I have already tried the following 1...