Furman University
Introduction to R[1],2 , Part I
We are going to learn some of the basics for R, a language for statistical computing and graphics. It is available for free from . Hopefully you have already downloaded it and installed it on your computer. Today we will practice some basic data manipulation However, R has a huge number of different capabilities; and we will only be able to cover a few of them in class. I would strongly encourage all of you to go over the Intro to R documentation found at the R project web site
(, see also
).
.
Numerical Vectors
The most basic type of data structure in R is a vector. Vectors are a series of elements of a single data type – numbers, characters, logical statements, etc. - contained in one named object. We are going to start by creating and manipulating vectors of numbers.
The first thing we want to do is use the c(concatenate) function to create a short numerical vector. The c function combines multiple elements into a single vector in the order in which they appear. For example type:
Monkeys = c(1,20,9)
This will create a vector named Monkeys containing these three numbers. Commands that do not include an assignment will print the output of the command to the screen. (Sometimes you will see " ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- csss 508 intro to r university of minnesota
- furman university
- a short introduction to the r programming language for
- csss 508 intro to r carnegie mellon university
- part 1 create some tables and graphs describing the new
- rstudio 01
- r code for indicator variables
- chesapeake bay
- assignment 1 introduction to r university of idaho
Related searches
- university city education foundation
- city university high school memphis
- why this university essay sample
- university city schools mo
- university of minnesota education department
- university school district jobs
- university city high school mo
- university city public schools
- university city st louis
- university city mo school district
- university place school district jobs
- university city high school missouri