{"id":345,"date":"2018-09-01T10:42:21","date_gmt":"2018-09-01T05:12:21","guid":{"rendered":"https:\/\/www.techandtrain.com\/blog\/?p=345"},"modified":"2025-10-22T14:55:34","modified_gmt":"2025-10-22T09:25:34","slug":"learning-r-programming-part-1","status":"publish","type":"post","link":"https:\/\/www.techandtrain.com\/blog\/2018\/09\/learning-r-programming-part-1\/","title":{"rendered":"Learning R Programming &#8211; Part 1"},"content":{"rendered":"<p><strong>As per Glassdoor Top 5 skills in Data Science for job openings are:<\/strong><\/p>\n<ol>\n<li>Python<\/li>\n<li>R<\/li>\n<li>SQL<\/li>\n<li>Hadoop<\/li>\n<li>Java<\/li>\n<\/ol>\n<p>Most Java developers know SQL, Hadoop &amp; Java to a good extent in today&#8217;s environment, two important skills Python &amp; R should be learned by the Java developer \/ architect \/ manager if s\/he wants to contribute \/ work in Data Science area. In this article you will find a structured step by step approach for learning programming in R.<\/p>\n<ol>\n<li>To start with install R and familiarize yourself with R Console &amp; R Script interface. You can run commands on both but it&#8217;s best to write multiple commands and try them out in script editor. Use short cut CTRL + R to run your commands in R Script editor.<\/li>\n<li>Explore menu options like Package -&gt; Install \/ Load \/ Choose CRAN Mirror. By default many commands for statistics, visualization, etc. are given in R by default. Big set of libraries are already loaded into R by default and 100s more are available. Select any mirror to download new packages and install \/ load them step by step. You will need working internet connection. Learn how to set working directory. You can see default libraries available in R using library()<\/li>\n<li>From there move on to various R Objects \/ Data Types &#8211; Explore Data Frame, Vector, List, Matrices, Arrays and Factors. Try out examples for the same.<\/li>\n<li>Next step learn to load \/ read and write datasets by commands like read.csv \/ write.csv. You can also read \/ write excel sheets but for it you will need other packages. See the basic commands like summary, structure &amp; fix to analyze \/ edit your dataset<\/li>\n<li>Next step &#8211; go through various categories of operators (logical, mathematical, relational) and concepts like pipe %&gt;%, constants, rules for naming identifiers followed by various statistical functions directly available in R. You can get help on a command by using ?&lt;COMMAND&gt;. Also, learn to create functions and use conditions like if<\/li>\n<li>By now you should revise basics of statistics &amp; various visualization charts which are taught typically in Year 1 \/ Semester 1 of MBA. Explore various default commands for statistics built into R by default. Some examples &#8211; mean, variance, standard deviation, etc.<\/li>\n<li>Learn to manipulate \/ read \/ write datasets using subset, sample_n &amp; sample_frac and using dplyr package which has commands like select &amp; filter among others<\/li>\n<li>Check various types of default visualization commands in R for various charts like barplot &amp; pie. Post this learn how to use ggplot2 package<\/li>\n<li>You will get many datasets at kaggle.com and various websites like stock exchanges &#8211; NSE \/ BSE, RBI, Open Data websites of various Governments and others<\/li>\n<li>Explore top 20 packages of R categorized by various areas as given below.<\/li>\n<\/ol>\n<p>An advantage of learning R is that you will become better at statistics &amp; data science. It&#8217;s much simpler than Java in terms of syntax and structure and is influenced by open source languages \/ scripting like Linux, etc.<\/p>\n<p>Reach out to me at <a href=\"mailto:neil@techandtrain.com\">neil@techandtrain.com<\/a> if you want to discuss R, conduct a training for MBA \/ BE \/ MCA \/ MSc students in R or want to conduct a workshop for your managers \/ executives on Data Science \/ R \/ Java \/ etc.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2018\/09\/top-r02.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"347\" data-permalink=\"https:\/\/www.techandtrain.com\/blog\/2018\/09\/learning-r-programming-part-1\/top-r02\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2018\/09\/top-r02.png?fit=975%2C1733&amp;ssl=1\" data-orig-size=\"975,1733\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"top-r02\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2018\/09\/top-r02.png?fit=576%2C1024&amp;ssl=1\" class=\"alignnone wp-image-347 size-large\" src=\"https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2018\/09\/top-r02.png?resize=474%2C843&#038;ssl=1\" alt=\"\" width=\"474\" height=\"843\" srcset=\"https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2018\/09\/top-r02.png?resize=576%2C1024&amp;ssl=1 576w, https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2018\/09\/top-r02.png?resize=169%2C300&amp;ssl=1 169w, https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2018\/09\/top-r02.png?resize=768%2C1365&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2018\/09\/top-r02.png?w=975&amp;ssl=1 975w\" sizes=\"auto, (max-width: 474px) 100vw, 474px\" \/><\/a><\/p>\n<p><strong>References:<\/strong><\/p>\n<p><a href=\"https:\/\/www.glassdoor.com\/research\/data-scientist-personas\/\" target=\"_blank\" rel=\"noopener\">Top 10 skills for Data Science &#8211; Glassdoor Economic Research<\/a><\/p>\n<p><a href=\"https:\/\/activewizards.com\/blog\/top-20-r-libraries-for-data-science-in-2018-infographic\/\" target=\"_blank\" rel=\"noopener\">Top 20 packages in R<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As per Glassdoor Top 5 skills in Data Science for job openings are: Python R SQL Hadoop Java Most Java [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":346,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[77],"tags":[73,74,78],"class_list":["post-345","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming","tag-analytics","tag-data-science","tag-r-programming"],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2018\/09\/Programming.jpg?fit=1920%2C1255&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7do02-5z","jetpack-related-posts":[{"id":959,"url":"https:\/\/www.techandtrain.com\/blog\/2022\/10\/comparison-of-programming-languages-c-c-java-python-r-rust-scala-c-part-1\/","url_meta":{"origin":345,"position":0},"title":"Comparison of Programming Languages C, C++, Java, Python, R, Rust, Scala &#038; C# &#8211; Part 1","author":"Neil Harwani","date":"October 1, 2022","format":false,"excerpt":"Part 1 of a series on comparison between programming languages: C, C++, Java, Python, R, Rust, Scala & C# compiled from WIKIPEDIA C: Invented in 1970sUsed widely in operating systems and driver programmingImperative, procedural, compiled and structured with low level access to memoryCross platform capabilityHas had influence on C++, Java,\u2026","rel":"","context":"In &quot;Programming&quot;","block_context":{"text":"Programming","link":"https:\/\/www.techandtrain.com\/blog\/category\/programming\/"},"img":{"alt_text":"Credit: www.Pixabay.com","src":"https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2022\/10\/ProgrammingLanguages.png?fit=1200%2C740&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2022\/10\/ProgrammingLanguages.png?fit=1200%2C740&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2022\/10\/ProgrammingLanguages.png?fit=1200%2C740&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2022\/10\/ProgrammingLanguages.png?fit=1200%2C740&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2022\/10\/ProgrammingLanguages.png?fit=1200%2C740&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":417,"url":"https:\/\/www.techandtrain.com\/blog\/2019\/02\/what-should-be-the-subjects-course-structure-for-teaching-data-analytics-data-science-in-mba\/","url_meta":{"origin":345,"position":1},"title":"What should be the subjects &#038; course structure for teaching Data Analytics \/ Data Science in MBA?","author":"Neil Harwani","date":"February 12, 2019","format":false,"excerpt":"Data Science & Analytics including Operations \/ Decision Science are evolving fields which are in demand currently for various reasons. Most companies are experimenting and creating projects \/ products around analytics \/ data science. I am listing the subjects & courses that an MBA student should take to cover Data\u2026","rel":"","context":"In &quot;Analytics&quot;","block_context":{"text":"Analytics","link":"https:\/\/www.techandtrain.com\/blog\/category\/analytics\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2019\/02\/Analytics2.jpg?fit=960%2C635&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2019\/02\/Analytics2.jpg?fit=960%2C635&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2019\/02\/Analytics2.jpg?fit=960%2C635&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2019\/02\/Analytics2.jpg?fit=960%2C635&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":385,"url":"https:\/\/www.techandtrain.com\/blog\/2018\/11\/how-to-solve-a-machine-learning-problem-1\/","url_meta":{"origin":345,"position":2},"title":"How to solve a machine learning problem ? &#8211; 1","author":"Neil Harwani","date":"November 24, 2018","format":false,"excerpt":"\u00a0 Select a language like for example either of R or Python Select a machine learning package to use and associated data manipulation, charting, output, etc. packages Get and explore the data using techniques like Exploratory Data Analysis for an initial understanding of data and some inferences Break your original\u2026","rel":"","context":"In &quot;Analytics&quot;","block_context":{"text":"Analytics","link":"https:\/\/www.techandtrain.com\/blog\/category\/analytics\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2018\/11\/ML.jpg?fit=1200%2C805&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2018\/11\/ML.jpg?fit=1200%2C805&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2018\/11\/ML.jpg?fit=1200%2C805&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2018\/11\/ML.jpg?fit=1200%2C805&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2018\/11\/ML.jpg?fit=1200%2C805&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":367,"url":"https:\/\/www.techandtrain.com\/blog\/2018\/10\/how-to-explore-and-learn-analytics-data-science\/","url_meta":{"origin":345,"position":3},"title":"How to explore and learn &#8220;Analytics &#038; Data Science&#8221; ?","author":"Neil Harwani","date":"October 10, 2018","format":false,"excerpt":"One of my students asked me as to how\u00a0can someone\u00a0explore and learn Analytics \/ Data Science domain with an intention to build their career in it ? There are three types of roles available in Data Science \/ Analytics: Functional consultant like a Business \/ Data Analyst Technical Consultant like\u2026","rel":"","context":"In &quot;Analytics&quot;","block_context":{"text":"Analytics","link":"https:\/\/www.techandtrain.com\/blog\/category\/analytics\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2018\/10\/Analysis-2.jpg?fit=1200%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2018\/10\/Analysis-2.jpg?fit=1200%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2018\/10\/Analysis-2.jpg?fit=1200%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2018\/10\/Analysis-2.jpg?fit=1200%2C800&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2018\/10\/Analysis-2.jpg?fit=1200%2C800&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":1532,"url":"https:\/\/www.techandtrain.com\/blog\/2026\/04\/keywords-notes-from-executive-masters-in-data-science-for-decision-making-at-iit-gandhinagar-part-1-assisted-by-chatgpt\/","url_meta":{"origin":345,"position":4},"title":"Keywords &amp; Notes from Executive Masters in Data Science for Decision Making at IIT Gandhinagar &#8211; Part 1 &#8211; Assisted by ChatGPT","author":"Neil Harwani","date":"April 11, 2026","format":false,"excerpt":"Here are 20 high-quality keywords for each category, structured for learning, research, and practical application: 1. Advanced Probability & Statistics Bayesian Inference Markov Chains Stochastic Processes Central Limit Theorem Hypothesis Testing Maximum Likelihood Estimation (MLE) Bayesian Networks Copulas Multivariate Distributions Monte Carlo Simulation Gibbs Sampling Hidden Markov Models (HMM) Variational\u2026","rel":"","context":"In &quot;Academics&quot;","block_context":{"text":"Academics","link":"https:\/\/www.techandtrain.com\/blog\/category\/academics\/"},"img":{"alt_text":"Image credit: www.Pixabay.com","src":"https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2026\/04\/DS-scaled.jpg?fit=1200%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2026\/04\/DS-scaled.jpg?fit=1200%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2026\/04\/DS-scaled.jpg?fit=1200%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2026\/04\/DS-scaled.jpg?fit=1200%2C800&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2026\/04\/DS-scaled.jpg?fit=1200%2C800&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":358,"url":"https:\/\/www.techandtrain.com\/blog\/2018\/09\/history-future-of-information-technology\/","url_meta":{"origin":345,"position":5},"title":"History &#038; Future of Information Technology","author":"Neil Harwani","date":"September 22, 2018","format":false,"excerpt":"Late 1970s - Ethernet Late 1980s & Early 1990s - Internet Late 1990s - Y2K was the trend and revolution of easy operating systems like Windows with word processing and spreadsheets happened. Also, LINUX. ERP, CRM, BPM, HRM and similar software pick up in market. Early 2000s - Internet boom,\u2026","rel":"","context":"In &quot;Internet&quot;","block_context":{"text":"Internet","link":"https:\/\/www.techandtrain.com\/blog\/category\/internet\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2018\/09\/Dream.jpg?fit=1200%2C720&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2018\/09\/Dream.jpg?fit=1200%2C720&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2018\/09\/Dream.jpg?fit=1200%2C720&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2018\/09\/Dream.jpg?fit=1200%2C720&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.techandtrain.com\/blog\/wp-content\/uploads\/2018\/09\/Dream.jpg?fit=1200%2C720&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.techandtrain.com\/blog\/wp-json\/wp\/v2\/posts\/345","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techandtrain.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techandtrain.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techandtrain.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techandtrain.com\/blog\/wp-json\/wp\/v2\/comments?post=345"}],"version-history":[{"count":5,"href":"https:\/\/www.techandtrain.com\/blog\/wp-json\/wp\/v2\/posts\/345\/revisions"}],"predecessor-version":[{"id":954,"href":"https:\/\/www.techandtrain.com\/blog\/wp-json\/wp\/v2\/posts\/345\/revisions\/954"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techandtrain.com\/blog\/wp-json\/wp\/v2\/media\/346"}],"wp:attachment":[{"href":"https:\/\/www.techandtrain.com\/blog\/wp-json\/wp\/v2\/media?parent=345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techandtrain.com\/blog\/wp-json\/wp\/v2\/categories?post=345"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techandtrain.com\/blog\/wp-json\/wp\/v2\/tags?post=345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}