DS4100 | Data Collection, Integration and Analysis
  • Home
  • Units
  • Schedule
  • Assignments
    • Assignments >
      • Assignment 1
      • Assignment 2
      • Assignment 3
      • Assignment 4
      • Assignment 5
      • Assignment 6
      • Assignment 7
      • Assignment 8
      • Assignment 9
      • Assignment 10
      • Assignment 11 >
        • Real Estate Appraisal Case
      • Assignment 12
      • Assignment 13
    • Project
    • Portfolios & Blogs
  • Policies
    • Attendance
    • Collaboration
    • Exam Rules
    • Assessments
    • Grading
    • Academic Integrity
  • Resources
    • Lecture Notes >
      • Characteristics and Challenges of Big Data
      • Installing R and RStudio
      • Essential Programming in R
      • Basic Data Shaping
      • Essential Excel
      • Data Import
      • Web Scraping
      • Web APIs
      • Relational Data Storage
      • NoSQL Data Storage
      • Descriptive Analytics
      • Predictive Analytics
      • Explanatory Visualization
      • Analytics Reporting
      • Python for Data Science
      • Machine Learning
      • Data Governance
      • Data Quality
      • Profession of Data Science
      • Ethics in Data Science
    • Tools
    • Text Books
    • Additional Readings >
      • R Style Guide
      • Forecasting Cases
  • Help
    • Blog
    • Class Diary
    • Office Hours
    • Instructor

Essential Programming Concepts in R


Slide Deck | Tutorials | Discussions

This lesson introduces basic programming concepts in the R programming environment. In particular, it teaches how to create, display, and manipulate data sets and data frames -- two of the most important object types in R. In addition, functions will be used to organize code. Next, if statements and loops are presented with many examples. Lastly, the lesson shows how to import and export data in text files.

Objectives
Upon completion of this lesson, you will be able to
  • create data sets and data frames
  • display the content of data sets, arrays, sequences, and data frames
  • append data columns to data frames
  • control the flow of execution using if, for, and while
  • load data from a text file into a data set using read.table
  • write data from a data set into an external text file using write.table
  • identify missing data
  • create simple summary statistics
  • specify simple logical queries on data sets using any and which
Required Readings
  • Chapter 2 in text book
  • R Programming Style Guide
Data Sets
  • Used Cars

Picture

Learning

Blackboard
Lynda.com
​
Data Camp

Support

Contact Instructor
FAQ
Terms of Use
© COPYRIGHT 2016-17 by Martin Schedlbauer, Ph.D.
​FREE FOR ACADEMIC USE WITH ACKNOWLEDGEMENT AND NOTICE. 
ALL RIGHTS RESERVED.
✕