1 / 10

Introduction to R

Learn R programming in a structured manner with this course covering console operations, scripts, data visualization, analysis techniques, and more. Enhance your skills with hands-on practice and real-world examples.

darlenec
Download Presentation

Introduction to R

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to R Sandersan Onie UNSW Sydney, School of Psychology

  2. Table of Contents • Why Learn R (15 minutes) • R Introduction (10 minutes) • Console Operations • Scripts • R Markdown • Functions (10 minutes) • Basic operations (10 minutes) • Loading Packages • Loading Files • Data Types • Data Manipulation using Dplyr and Reshape2 (30 minutes) • Data Visualization using ggplot2 (30 minutes) • Data Analysis using lme4 and (30 minutes) • T-test • Regression • ANOVA

  3. Why Learn R? • Speed • Logic • Flexibility

  4. Programming

  5. R Introduction Doing things in the console Doing things in the script Doing things in Markdown

  6. What are functions? Functions are multiple steps bundled into a single command. Typically in the format of: function(argument 1, argument 2, argument 3..) E.g. Cook(fish, grill) Within Cook, there is: wash, chop, prepare dish, heat grill, grill and plate. E.g. Cook(fish, braise) Within Cook, there is: wash, chop, prepare dish, heat stove, braise and plate.

  7. Basic Operations Loading Packages Packages are a ‘package’ of functions which are normally associated with one another Loading Files

  8. Data Types Loading Packages Loading Files

  9. Dplyr Dplyr is perhaps the best package for data manipulation. Most often we’ll be using: dplyr::select dplyr::group_by dplyr::summarize dplyr::rename

  10. How to Google There are some great programming websites including: Stackoverflow

More Related