किसी निर्देशिका को हटाने के लिए आर प्रोग्रामिंग कमांड - आर ट्यूटोरियल

आर प्रोग्रामिंग
विषयसूची

किसी निर्देशिका को हटाने के लिए आर प्रोग्रामिंग कमांड - आर ट्यूटोरियल

क्या है R Programming:

आर एक फ्री सॉफ्टवेयर प्रोग्रामिंग भाषा है जिसका उपयोग सांख्यिकीय कंप्यूटिंग और ग्राफिक्स के क्षेत्र में किया जाता है। इस प्रोग्राम का उपयोग मुख्य रूप से सांख्यिकीविदों और डेटा विश्लेषकों द्वारा किया जाता है।R Programming CommandPin

In this आर प्रोग्रामिंग tutorial/post we are discussing the Command to delete a directory in R.

क्यों:

यद्यपि ऑपरेटिंग सिस्टम में ऐसा करने का सरल तरीका होगा, तथापि जब आप प्रोग्रामिंग वातावरण में काम कर रहे हों तो फाइलों को बनाने या उनमें हेरफेर करने के लिए कमांड का उपयोग करने की क्षमता हमेशा उपयोगी होती है।

How to delete directory using R Programming command:

स्टेप 1यदि आप अपनी सक्रिय निर्देशिका नहीं जानते हैं तो नीचे दिए गए आदेश का उपयोग करके इसकी जांच करें।

गेटव्ड()

चरण दो: Use the below r programming command to delete the directory.

unlink(“mytestDir“, recursive = TRUE)

**replace the “mytestDir” with your actual directory name.

R Programming uses the word “unlink” instead of “delete” which is more logical for deleting folder because R follows the UNIX way of deleting directory.

टिप्पणी: सुनिश्चित करें कि आप ' के बाद के कमांड का उपयोग कर रहे हैं>’ symbol.


Picture of Anson Antony
एंसन एंटनी
एंसन एक योगदानकर्ता लेखक और संस्थापक हैं www.askeygeek.com. कुछ भी नया सीखना हमेशा से उनका जुनून रहा है, ASKEYGEEK.com प्रौद्योगिकी और व्यवसाय के प्रति उनके जुनून का परिणाम है। उन्हें बिजनेस प्रोसेस आउटसोर्सिंग, वित्त और लेखा, सूचना प्रौद्योगिकी, परिचालन उत्कृष्टता और बिजनेस इंटेलिजेंस में एक दशक का बहुमुखी अनुभव मिला है। कार्यकाल के दौरान, उन्होंने विभिन्न भूमिकाओं और जिम्मेदारियों में जेनपैक्ट, हेवलेट पैकर्ड, एम*मोडल और कैपजेमिनी जैसे संगठनों के लिए काम किया था। व्यवसाय और प्रौद्योगिकी के अलावा, वह फिल्मों के शौकीन हैं, जो सिनेमा देखने और सीखने में घंटों बिताते हैं और एक फिल्म निर्माता भी हैं!

एक प्रतिक्रिया

  1. Hi! Thanks a lot for making these helpful posts. I’m trying to learn R, and am having a quite a lot of trouble. Your posts are very useful. I am wondering what sort of response to expect from R if a file/directory is successfully deleted. I used the unlink command with the recursive=TRUE added, and I didn’t receive a warning as I had before, but I also didn’t receive any sort of confirmation that the directory had been deleted. I simply got another > command prompt. I tried deleting it again with the same command, and got the same result. I would think if I had successfully deleted it, I would have gotten an error message saying that the directory didn’t exist.

प्रातिक्रिया दे

आपका ईमेल पता प्रकाशित नहीं किया जाएगा. आवश्यक फ़ील्ड चिह्नित हैं *

बधाई हो!
आपने कर दिखाया,
बंद मत करो!

उठो 60,000 UberTTS कैरेक्टर क्रेडिट निःशुल्क!!!

यह पॉपअप नहीं दिखाएगा आप पर है दोबारा!!!

उबरटीटीएस
Share to...