r set working directory

Ads
 

r set working directory

Hi,

How to set working directory in r?

Thanks

View Answers

December 25, 2017 at 1:38 AM

Hi,

For R programming you can use R GUI or RStudio. There are command to set the working directory in R.

Working directory is the base directory for your current work which contains data and other files related to your project.

After setting working directory you can load data files without providing full path.

Here is command to set working directory in R:

setwd("C:/R/examples")

For this you can use the setwd() command.

For finding current directory following command is used:

 getwd()

Thanks


December 25, 2017 at 1:39 AM

Hi,

Check more tutorials at R Programming tutorials.

Thanks


December 25, 2017 at 1:50 AM

Hi,

In windows you can also use the \\ in the command to provide path:

setwd("C:\\R\\examples")

Thanks

Ads









Related Tutorials/Questions & Answers:
r set working directory
r set working directory  Hi, How to set working directory in r.... There are command to set the working directory in R. Working directory is the base... full path. Here is command to set working directory in R: setwd("C:/R
Getting the Current Working Directory in Java
C:\nisha>javac GetCurrentDir.java C:\nisha>java GetCurrentDir Current Working Directory : C:\nisha C:\nisha> Download this example
Advertisements
Get current working directory in Java
Get current working directory in Java In this section we will discuss about how to get the the current working directory in java. Current working directory means the current working directory where java program execute. In java
FTP Server : Change working directory
In this tutorial you will learn how to change working directory on FTP server using java
Java Example program to get the current working directory
Java Example program to get the current working directory... program illustrates to get the current working directory (CWD). With the File class...;Current directory's canonical path: "    + 
R command not found Windows
Program. If your R Programming language is not set correctly then you won't... directory of r programming language into the system path variable. Open... and then provide the path of bin directory of your R software installation. Then click
r programming
r programming  Hi, How r programming is playing a big role in the Big Data time? These days companies are employing programmers with R Programming experience. Salary of R Programmer is also very high and its a demanding job
r
R Programming for Data Science
Science As mentioned earlier R Programming language comes with rich set of pre... is used for working with dates and times in R Program. ggplot2: This package...R Programming language offers various tools for Data Science R Programming
creating a file in a directory
creating a file in a directory  hi i have tried all the file methods to create a file inside a directory but none of them r working some of them are new File ( ".", "C:/fileInRoot.txt" ) new File ( "myDir", "/otherDir" ) File
Are there any online courses for learning R?
Are there any online courses for learning R?  Hi, R is getting very... are coming for R Experts. So, I will learn it in hurry. Is there any good online training course for Learning and mastering R? Instructor should be able
UITapgesturerecognizer not working
UITapgesturerecognizer not working  uitapgesturerecognizer not working
Overview of R Programming
and graphs.   R Programming language provides large set of packages.  ... with huge set of functionality. R programming language is getting very popular...Overview of the R Programming language for data science R Programming language
E-R diagram
E-R diagram  Hi,Hw to do draw E-R diagram for online movie ticket booking
E-R diagram
E-R diagram  Hi,Hw to do draw E-R diagram for online movie ticket booking
How to close R Console?
How to close R Console?  Hi, I am inside R console. How to close R Console? Thanks   Hi, R Console is used to run the R Program. You can write and test R Programs here. If you wish to close the session then type: q
How long does it take to learn R Programming?
a particular job. So, for learning R programming we just need to set a milestone... programs in R programming. You can also start working on the real projects...Learning R Programming - How long does it take to learn R Programming? R
how to clear r console
how to clear r console  Hi, I doing experiment on the RGui in R... of log. Now I want to clear r console. how to clear r console? Thanks   Hi, RGui is the console of R Programming language. You can run your r program
R programming language.
R programming language.  i want to know about R-programming language. what is it? how to work on it? if possible provide me a ebook on the topic
Prerequisites for R Programming
Prerequisites for R Programming  Hi, What I should learn before starting with the R Programming? I want to know the Prerequisites for R Programming. Thanks   Hi, Here are Prerequisites for R Programming: R
R language course in Gurgaon
R language course in Gurgaon  Hello, Which is R language course... then you can attend R Training course from our institute. We offer R training... the necessary things in R programming. Check R Programming Training Course Thanks
R Tutorial
R Programming Tutorial - Learn and master R Programming R is a programming... for statistical computing. R Programming comes with a software environment which is used to run R program for statistical  computing, analysis
What is R programming language?
What is R programming language?  Hi, What is R programming language? How R programming language is used in real programming? People around the world is taking about R programming language. Why this programming language is very
how to create array in r
how to create array in r  Hi, In R Programming how array is created? how to create array in r? Explain me the process of array creation using the examples. Thanks   Hi, In R Programming language array is used
R Programming training in Delhi
R Programming training in Delhi by experts R Programming language offers API... basic and advanced R Programming training in Delhi at our development center in Delhi. R Programming training course is also delivered online so that you
htpasswd working
htpasswd working   hii, What does htpasswd do?   hello, htpasswd creates a new user in a specified group, and asks to specify a password for that user
Datagrid not working
Datagrid not working  The code here is working fine, apart from the fact that that I'm using netbeans 6.5 and the servlet v2.5 and struts 1.1.... working. please help me out
how to create vector in r
how to create vector in r  Hi, What is vector in R programming and how to create vector in r? Provide me some of the example code. Thanks   Hi, Vector in R is created using the key c(). Vector contains data of only
What is the best online course to learn R?
What is the best online course to learn R?  Hi, I am engineer with experience on the statistics. I also learned little Java. I want to learn R... data scientists. What is the best online course to learn R? Thanks  
R Programming Training Online
R Programming Training Online – Join online R programming online classes Learn R programming language by joining our R Programming online training course and become successful data scientist. We offer R Programming Training
How to learn R as a programming language?
How to learn R as a programming language?  Hi, I want to learn R for Big Data analysis in my company. How to learn R as a programming language? Thanks   Hi, For Learning R Programming you have to download

Ads