How to create a directory in R

R Programming

Table of Contents

R Programming command to create a directory in R

R command to create a directory in R

What is it:

R is a free software programming language used in the field of statistical computing and graphics. This program is mainly used by Statisticians and Data Analysts.Directory In RPin

In this r programming tutorial/post we are discussing on how to create a directory in r using R command.

Why:

Operating systems will have simpler way of creating directory however when you are working in the programming environment having the ability to use the commands for manipulating the files or tasks like this is very useful.

How to:

Step 1: If you do not know your active directory then check the same using the below r command.

getwd()

Step 2: Now create a new directory within the active directory using the below r command.

dir.create(“mytestdir“)

**replace the “mytestdir” with your actual directory name you want to create.

Note: Make sure you are using the commands after the ‘>’ symbol.

Anson Antony

Anson Antony

Anson is a contributing author and founder at ASKEYGEEK.com. Learning anything new has always been his passion, ASKEYGEEK.com is an outcome of his passion for technology and business. He has got a decade of versatile experience in Business Process Outsourcing, Finance & Accounting, Information Technology, Operational Excellence & Business Intelligence. During the tenure, he had worked for organizations like Genpact, Hewlett Packard, M*Modal and Capgemini in various roles and responsibilities. Outside business and technology, he is a movie buff who spends hours together watching and learning Cinema and a Film Maker too!

One Response

Leave a Reply

Your email address will not be published.

Launching soon...

E-book price at Amazon will be $14.99 

A Practical Guide To Online Business
Congratulations!
You Made It,
Don't Close!

Enter your chance to win our Premium Membership License for FREE! ( Normal Price $199/Year)

Thank you for your visit!

This popup won’t show up to you again!!!

Premium Membership Giveaway - Popup
small_c_popup.png

Let's have a chat

Fill out the form below to consult with us

*Please check your Inbox or Junk Folder for the Confirmation Email. You must confirm your Company email address before we could revert.

Share to...