{"id":2090,"date":"2018-02-27T10:04:08","date_gmt":"2018-02-27T04:34:08","guid":{"rendered":"http:\/\/stepbystepschools.net\/?p=2090"},"modified":"2018-02-27T10:21:35","modified_gmt":"2018-02-27T04:51:35","slug":"data-science-training-in-mumbai-execute-r-program-using-visual-studio","status":"publish","type":"post","link":"https:\/\/www.stepbystepschools.net\/?p=2090","title":{"rendered":"Data Science Training in Mumbai :- Execute R program using Visual Studio."},"content":{"rendered":"<p>To create and run our R program in Visual Studio we must first install some tools.<\/p>\n<p>Now open Visual Studio on your pc and then click on Get Tools and features&#8230; inside Tools.<\/p>\n<p><a href=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/1-7.png\" rel=\"attachment wp-att-2109\"><img loading=\"lazy\" src=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/1-7.png\" alt=\"1\" width=\"602\" height=\"61\" class=\"aligncenter size-full wp-image-2109\" srcset=\"https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/02\/1-7.png 602w, https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/02\/1-7-300x30.png 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/a><\/p>\n<p>Now in the feature installation window check and install the following features<\/p>\n<p>For Visual Studio 2017<\/p>\n<p>Contains Tools for Data Science<\/p>\n<p><a href=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/2-6.png\" rel=\"attachment wp-att-2110\"><img loading=\"lazy\" src=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/2-6.png\" alt=\"2\" width=\"403\" height=\"86\" class=\"aligncenter size-full wp-image-2110\" srcset=\"https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/02\/2-6.png 403w, https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/02\/2-6-300x64.png 300w\" sizes=\"(max-width: 403px) 100vw, 403px\" \/><\/a><\/p>\n<p>After this please install R tools from the following link if the above package is not installed properly from the following link.<\/p>\n<p>But it is not necessary<\/p>\n<p><a target=\"_blank\" href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/rtvs\/installing-r-tools-for-visual-studio\">https:\/\/docs.microsoft.com\/en-us\/visualstudio\/rtvs\/installing-r-tools-for-visual-studio<\/a><\/p>\n<p>You can also install R programming tool go to the following link for better support and download the software and install it.<\/p>\n<p><b>For Windows Users:<\/b><\/p>\n<p><a target=\"_blank\" href=\" https:\/\/ftp.iitm.ac.in\/cran\/\"> https:\/\/ftp.iitm.ac.in\/cran\/<\/a><\/p>\n<p><a href=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/3-6.png\" rel=\"attachment wp-att-2111\"><img loading=\"lazy\" src=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/3-6.png\" alt=\"3\" width=\"602\" height=\"118\" class=\"aligncenter size-full wp-image-2111\" srcset=\"https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/02\/3-6.png 602w, https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/02\/3-6-300x59.png 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/a><\/p>\n<p><b>For Linux Users:<\/b><\/p>\n<p>If you are on Linux platform then you can use this fast and easy command used in Linux which can be used to install R. The yum command is used for installing like this:<\/p>\n<p><span style=\"background-color: #C0C0C0\">$ yum install R<\/span><\/p>\n<p>For Ubuntu Linux or other Debian-related OSs, a more direct method is:<\/p>\n<p><span style=\"background-color: #C0C0C0\">$ apt-get install r-base<\/span><\/p>\n<p>Now let us start creating our R application in visual studio<br \/>\nGo to Files ->Project and add a new R project\n<\/p>\n<p><a href=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/4-5.png\" rel=\"attachment wp-att-2112\"><img loading=\"lazy\" src=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/4-5.png\" alt=\"4\" width=\"602\" height=\"368\" class=\"aligncenter size-full wp-image-2112\" srcset=\"https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/02\/4-5.png 602w, https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/02\/4-5-300x183.png 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/a><\/p>\n<p>This is our project structure:<\/p>\n<p><a href=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/5-5.png\" rel=\"attachment wp-att-2113\"><img loading=\"lazy\" src=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/5-5.png\" alt=\"5\" width=\"319\" height=\"181\" class=\"aligncenter size-full wp-image-2113\" srcset=\"https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/02\/5-5.png 319w, https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/02\/5-5-300x170.png 300w\" sizes=\"(max-width: 319px) 100vw, 319px\" \/><\/a><\/p>\n<p>Now on the top left side is a new R file (script.R) where we can edit source code with all of Visual Studio Ide editing features.<br \/>\nAlso on the bottom left of Visual Studio is where you can find an R Interactive window in which you can interactively develop and test code.\n<\/p>\n<p>We can directly use R Interactive without the need of opening any new project.<\/p>\n<p><a href=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/6-3.png\" rel=\"attachment wp-att-2114\"><img loading=\"lazy\" src=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/6-3.png\" alt=\"6\" width=\"602\" height=\"254\" class=\"aligncenter size-full wp-image-2114\" srcset=\"https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/02\/6-3.png 602w, https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/02\/6-3-300x127.png 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/a><\/p>\n<p>We can even plot graph using certain command such as<br \/>\n<span style=\"background-color: #C0C0C0\">plot(1:100)<\/span><\/p>\n<p><a href=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/7-2.png\" rel=\"attachment wp-att-2115\"><img loading=\"lazy\" src=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/7-2.png\" alt=\"7\" width=\"602\" height=\"238\" class=\"aligncenter size-full wp-image-2115\" srcset=\"https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/02\/7-2.png 602w, https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/02\/7-2-300x119.png 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/a><\/p>\n<p>As you can see the Visual studio generated a graph in a different windows<\/p>\n<p>Let\u2019s write the following code inside our Script.R window which is the main page to write our code<\/p>\n<p><span style=\"background-color: #FFFF00\"># Inserting series into Data Frame<\/span><\/p>\n<p><span style=\"background-color: #C0C0C0\">df <- data.frame(\n  <br \/>\n&nbsp; group = c(&#8220;Male&#8221;, &#8220;Female&#8221;, &#8220;Child&#8221;),<br \/>\n  <br \/>\n&nbsp; value = c(25, 25, 50)<br \/>\n  <br \/>\n&nbsp; ) <br \/>\n<\/span><span style=\"background-color: #C0C0C0\">head(df)<\/span>\n<\/p>\n<p><span style=\"background-color: #C0C0C0\">library(ggplot2)<\/span><\/p>\n<p><span style=\"background-color: #FFFF00\"># Plotting our Barplot Graph<\/span><\/p>\n<p><span style=\"background-color: #C0C0C0\">bp <- ggplot(df, aes(x = \"\", y = value, fill = group)) +\n    <br \/>\n&nbsp;&nbsp; geom_bar(width = 1, stat = &#8220;identity&#8221;)<br \/>\n<br \/>\n<\/span><span style=\"background-color: #C0C0C0\">bp <\/span>\n<\/p>\n<p><span style=\"background-color: #C0C0C0\">pie <- bp + coord_polar(\"y\", start = 0)\n<br \/>\npie <\/span>\n<\/p>\n<p><span style=\"background-color: #C0C0C0\">ggplot(PlantGrowth, aes(x = factor(1), fill = group)) +<br \/>\n    <br \/>\n&nbsp;&nbsp; geom_bar(width = 1) +<br \/>\n    <br \/>\n&nbsp;&nbsp; coord_polar(&#8220;y&#8221;) <\/span>\n<\/p>\n<p><b>The Generated output for the above Code is as follows:<\/b><\/p>\n<p><a href=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/8-2.png\" rel=\"attachment wp-att-2116\"><img loading=\"lazy\" src=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/8-2.png\" alt=\"8\" width=\"371\" height=\"293\" class=\"alignleft size-full wp-image-2116\" srcset=\"https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/02\/8-2.png 371w, https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/02\/8-2-300x237.png 300w\" sizes=\"(max-width: 371px) 100vw, 371px\" \/><\/a><\/p>\n<p><\/br><br \/>\n<\/br><br \/>\n<\/br><br \/>\n<\/br><br \/>\n<\/br><br \/>\n<\/br><br \/>\n<\/br><\/p>\n<p><a target=\"_blank\" href=\"http:\/\/stepbystepschools.net\/?page_id=1842\">Syllabus of Data Science training in Mumbai<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To create and run our R program in Visual Studio we must first install some tools. Now open Visual Studio on your pc and then click on Get Tools and features&#8230; inside Tools. Now in the feature installation window check &hellip; <a href=\"https:\/\/www.stepbystepschools.net\/?p=2090\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":40,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[1],"tags":[198,199,216,215],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Data Science Training in Mumbai :- Execute R program using Visual Studio. - Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.stepbystepschools.net\/?p=2090\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Data Science Training in Mumbai :- Execute R program using Visual Studio. - Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai\" \/>\n<meta property=\"og:description\" content=\"To create and run our R program in Visual Studio we must first install some tools. Now open Visual Studio on your pc and then click on Get Tools and features&#8230; inside Tools. Now in the feature installation window check &hellip; Continue reading &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.stepbystepschools.net\/?p=2090\" \/>\n<meta property=\"og:site_name\" content=\"Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai\" \/>\n<meta property=\"article:published_time\" content=\"2018-02-27T04:34:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-02-27T04:51:35+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/1-7.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"StepByStepSchoolsSupport\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.stepbystepschools.net\/#website\",\"url\":\"https:\/\/www.stepbystepschools.net\/\",\"name\":\"Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai\",\"description\":\"MVC 5\/Core, AngularJS 1.x, 2.0, 4.0, Design Pattern, Architecture, SSIS, SSAS, SSRS, Data Science, Big data, Hadoop classroom training\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.stepbystepschools.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.stepbystepschools.net\/?p=2090#primaryimage\",\"url\":\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/1-7.png\",\"contentUrl\":\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/1-7.png\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.stepbystepschools.net\/?p=2090#webpage\",\"url\":\"https:\/\/www.stepbystepschools.net\/?p=2090\",\"name\":\"Data Science Training in Mumbai :- Execute R program using Visual Studio. - Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai\",\"isPartOf\":{\"@id\":\"https:\/\/www.stepbystepschools.net\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.stepbystepschools.net\/?p=2090#primaryimage\"},\"datePublished\":\"2018-02-27T04:34:08+00:00\",\"dateModified\":\"2018-02-27T04:51:35+00:00\",\"author\":{\"@id\":\"https:\/\/www.stepbystepschools.net\/#\/schema\/person\/7131e4ee1c5673879e6029d14ec2f655\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.stepbystepschools.net\/?p=2090#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.stepbystepschools.net\/?p=2090\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.stepbystepschools.net\/?p=2090#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.stepbystepschools.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Data Science Training in Mumbai :- Execute R program using Visual Studio.\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.stepbystepschools.net\/#\/schema\/person\/7131e4ee1c5673879e6029d14ec2f655\",\"name\":\"StepByStepSchoolsSupport\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.stepbystepschools.net\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cecaf2a0ee369391127b0159c266979d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cecaf2a0ee369391127b0159c266979d?s=96&d=mm&r=g\",\"caption\":\"StepByStepSchoolsSupport\"},\"url\":\"https:\/\/www.stepbystepschools.net\/?author=40\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Data Science Training in Mumbai :- Execute R program using Visual Studio. - Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.stepbystepschools.net\/?p=2090","og_locale":"en_US","og_type":"article","og_title":"Data Science Training in Mumbai :- Execute R program using Visual Studio. - Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai","og_description":"To create and run our R program in Visual Studio we must first install some tools. Now open Visual Studio on your pc and then click on Get Tools and features&#8230; inside Tools. Now in the feature installation window check &hellip; Continue reading &rarr;","og_url":"https:\/\/www.stepbystepschools.net\/?p=2090","og_site_name":"Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai","article_published_time":"2018-02-27T04:34:08+00:00","article_modified_time":"2018-02-27T04:51:35+00:00","og_image":[{"url":"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/1-7.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"StepByStepSchoolsSupport","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/www.stepbystepschools.net\/#website","url":"https:\/\/www.stepbystepschools.net\/","name":"Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai","description":"MVC 5\/Core, AngularJS 1.x, 2.0, 4.0, Design Pattern, Architecture, SSIS, SSAS, SSRS, Data Science, Big data, Hadoop classroom training","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.stepbystepschools.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.stepbystepschools.net\/?p=2090#primaryimage","url":"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/1-7.png","contentUrl":"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/1-7.png"},{"@type":"WebPage","@id":"https:\/\/www.stepbystepschools.net\/?p=2090#webpage","url":"https:\/\/www.stepbystepschools.net\/?p=2090","name":"Data Science Training in Mumbai :- Execute R program using Visual Studio. - Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai","isPartOf":{"@id":"https:\/\/www.stepbystepschools.net\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.stepbystepschools.net\/?p=2090#primaryimage"},"datePublished":"2018-02-27T04:34:08+00:00","dateModified":"2018-02-27T04:51:35+00:00","author":{"@id":"https:\/\/www.stepbystepschools.net\/#\/schema\/person\/7131e4ee1c5673879e6029d14ec2f655"},"breadcrumb":{"@id":"https:\/\/www.stepbystepschools.net\/?p=2090#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.stepbystepschools.net\/?p=2090"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.stepbystepschools.net\/?p=2090#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.stepbystepschools.net\/"},{"@type":"ListItem","position":2,"name":"Data Science Training in Mumbai :- Execute R program using Visual Studio."}]},{"@type":"Person","@id":"https:\/\/www.stepbystepschools.net\/#\/schema\/person\/7131e4ee1c5673879e6029d14ec2f655","name":"StepByStepSchoolsSupport","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.stepbystepschools.net\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cecaf2a0ee369391127b0159c266979d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cecaf2a0ee369391127b0159c266979d?s=96&d=mm&r=g","caption":"StepByStepSchoolsSupport"},"url":"https:\/\/www.stepbystepschools.net\/?author=40"}]}},"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=\/wp\/v2\/posts\/2090"}],"collection":[{"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2090"}],"version-history":[{"count":6,"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=\/wp\/v2\/posts\/2090\/revisions"}],"predecessor-version":[{"id":2122,"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=\/wp\/v2\/posts\/2090\/revisions\/2122"}],"wp:attachment":[{"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2090"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2090"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2090"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}