r1 - Math 127B Basic R Lecture 1 Mrinal Raghupathi Monday...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Math 127B, Basic R, Lecture 1 Mrinal Raghupathi Monday, April 4, 2011 Administrivia Today we will learn the absolute basics of the programming language R. This language was designed with statistics in mind. Reminders 1. Homework 9 is due Thursday, 4/7 in recitation. 2. Quiz in recitation over chapter 28 on 4/27. Notation I will follow a standard convention for writing computer code and instructions. Things that you should type or that R will print out will be written in a fixed-width typewriter font. So this is normal text and this is R text or computer code . 1 Starting and stopping I will post all the information related to R at the following address http://www.math.vanderbilt.edu/ ~ mrinalr/programming/r You can also find the link on the usual webpage, and you will find the class notes in both places. 1.1 Starting R To start R you should locate the R icon in either the applications folder (mac) or in the start menu (windows). When you start up a lot of things will happen, but at the end of the process you will see a little window with a prompt > . This is where all the action will take place. 1
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
When R starts it will print some information about the version you are using and the oper- ating system, a warranty message, a little bit of information about citing R, and then few useful commands: demo(), help() and q(). After this you will find a prompt, which should look like this > . 1.2 Quitting If you want to shut things down you type q() . Don’t forget the tow parentheses at the end. Okay, so you shut things down, so you’ll need to start R again. 1.3 Creating a folder Somewhere on your computer you should create a folder (directory) where you will save your work.
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern