similar to: Working directories... Again

Displaying 20 results from an estimated 40000 matches similar to: "Working directories... Again"

2018 May 20
3
Loop Function to Create Multiple Scatterplots
Hello, I am trying to create multiple scatter plot graphs. I have 1 independent variable (Age - weeks post conception) and 18 dependent variables ("Gene n" Expression) in one csv file. Is there a way to set up a looped function to produce 18 individual scatterplots? At the moment, I am writing the plot() function out 18 times to make the 18 graphs. My code is below and csv file is
2009 Apr 25
2
Extracting an object name?
Dear Sir or Madam: This is an extension to a earlier post, about looping through several thousand files, and testing student's models against a different data-set, called rclnow, for "recall now". The problem is, that the instructor never specified to the students, what they should name their "lm" object. So what they created was: "arbitrary variable name"
2012 Apr 17
4
parallel processing with multiple directories
Hello, I would like to run some code in parallel with each cluster reading/writing to a different working directory. I've tried the following code without success. The error I get is: "Error in setwd(x) : cannot change working directory" library(parallel) dirs <- list("out1","out2","out3") # these directories are located within the current
2012 Mar 21
3
"cannot change working directory"
Hi, I need to write program to run some results from an experiment. i have the results saved in 2 different files, named "tuesday" and "wednesday" (both located within the same file). when i wrote the program for "tuesday" i had no problem running it, but when i changed the work directory to wednesday i got the "cannot change working directory" message. I
2012 Feb 26
2
Help needed! Error in setwd(newdir) : cannot change working directory
Hi Guys, I am new to R and just trying to write a small script to automate a couple commands. But I run into the setwd(): cannot change working directory. I googled a little bit and tried all fixes/suggestions with no success. Basically I have a script that works from inside a directory with my data (/home/sean/Rtest/Data01). Now I want to modify the script to make it run from the upper directory
2008 Apr 18
3
Permanent change to the working directory
Dear helpers, I've looked in the help files (maybe not very thoroughly but I looked) and I couldn't find a straightforward way to permanently set the working directory (where I save and read files). Each time I startup R the working dir is automatically "C:/R/bin" [using:getwd()], and I know I can change it using setwd [for example setwd("C:/R/DATA"), but it's only
2009 Aug 31
4
Simple column selection question- which and character lists
Dear R-list, Seems simple but have tried multiple approaches, no luck. I have a list of column names:
2004 Jun 18
1
set working directory
I have just upgraded from rw1081 to rw1090 (using Windows 2000). Now when I type the command: > setwd('d:/folder_name) I get the following error message: Error in setwd(dir) : cannot change working directory If I use the "change dir" tab in the file menu i can sucessfully change working directories, but this is not so convenient as i have my whole model stored as a text file
2009 Dec 04
2
Class attributes
Dear R forum, I want to replace all the elements in a data frame (dd) which match the character "x" with "0". What's the most elegant way of doing this (there must be an easy way which I've missed)? I settled on the following loop: >for(i in 5:12){ # These are the column of dd I am interested in >dd[which(dd[,i]=="x"),i]<-0 >} The
2013 Feb 20
4
Error in setwd(outDir) : cannot change working directory
I installed R on my Windows laptop in C:\Program Files\R\R-2.15.2 and am able to open RGUI (640bit), see packages and run commands. However, when I test the installation and run the basic tests and all the tests on the standard and recommended packages i.e.: library("tools") testInstalledBasic("both") testInstalledPackages("base", errorsAreFatal
2010 Nov 17
2
Looking up the directory a file is located in
Hello everyone, This should be an easy question, I think. I'd like to write a command in a program to set the working directory to whatever directory the file is currently stored in. Suppose I have a file called "myRscript.r", and it's stored in "C:\Rprojects\myRscript.r", and it references other R scripts and data files in the same directory. If I enter the
2006 Apr 13
1
Working directory
Hi, I am a new user of "R", I am trying to read my data in.. "Cervixhc.dat" used to be in a different directory, now it has been moved to "O:\E&s\APC cervix FINAL (YG,MC,MD)\Manuscript\Data", but when I ran the following program (in red) I got an error message "Error in setwd(dir) : cannot change working directory", and "Error in file(file,
2005 Jan 14
2
Migrating PDC
I am trying to migrate my samba 3.0.10 PDC from a Solaris 2.8 machine to a Suse 9.1 machine. Nothing in the docs including the part about moving from a windows PDC to samba PDC seem to work in my case. Is their some quick and dirty or do I have to reinstall on the Suse machine and recreate all the users? Thanks, John Allen john.allen@noaa.gov
2009 Jan 07
4
Another newbie question
Problem: I have a data frame with 1s and 0s denoting presence/absence of species (columns) for particular plot measurements (rows). What I want to do is make a new column whose entries for each row is a list of the column names in which a species is present (ie. for row one its entry might read: "sp1","sp2", etc.). I've tried various functions etc. but can't seem to
2008 Jun 06
3
[LLVMdev] Data dependence analysis
Hi all! I have recently finished the first prototype of data dependence analysis for LLVM. Now that I have some more time I would like to prepare a "production" version. In this post I'll try to describe the current state and propose a work plan. Currently, the analysis has a very simplified interface (it allows to query for dependence between two given instructions or whether a
2010 Jun 11
4
setting the current working directory to the location of the source file
AFAIK a script run through source() does not have any legit way to learn about it's own location. I need this to make sure that the script will find its datafiles after I move the whole directory. (The datafiles are in the same directory.) Here is a hack I invented to work around it: print(getwd()) source_pathname = get("ofile",envir = parent.frame()) source_dirname =
2002 Mar 01
3
Setting working directory (PR#1338)
Full_Name: Jeffrey M. Freedman Version: 1.4.1 OS: Mac OSX Submission from: (NULL) (169.226.200.51) I'm running R version 1.4.1 (NOT DARWIN VERSION) and it crashes every time I set a working directory (either from the menu or using setwd) to a path that is longer than a certain number of characters. This was not a problem in version 1.3.1. Thank you.
2009 Nov 13
4
Change working directory
Hello, I am using setwd() to change the working directory but I have to enter it everytime I open R, is there a way to set this permanently as a working directory? Thanx =^D -- View this message in context: http://old.nabble.com/Change-working-directory-tp26337486p26337486.html Sent from the R help mailing list archive at Nabble.com.
2013 Feb 07
1
assignInNamespace to create a setwd() replacement: how to use unlockBinding()?
In my .Rprofile for Windows, I had the following functions defined to mirror a few features I miss from linux: (a) replace setwd() with a version that stashes the current directory so it can be easily restored (b) writes a short version of the current R directory to the Windows title bar: I can always see where I am, with multiple Rgui windows. (c) creates a cd() shorthand for setwd(), but
2012 Jul 30
1
locked binding of setwd() in R 2.15.x causes .Rprofile to fail
[Env: Win XP, R 2.14.2, R 2.15.0] I have a replacement function for setwd() in my .Rprofile which displays the current R path in the R window title. It no longer works in R 2.15.x, giving the error below. Worse, the error prevents the rest of my .Rprofile script from completing. Is there some way to rescue this, i.e., preserve this behavior in R 2.15? If not, how can I modify my script so it