An R Introduction to Statistics

R Introduction

An introduction to R concepts and data structures.

Data Frame Row Slice

A tutorial on retrieving a collection of row vectors in a data frame. Discussion on the usage of numeric, name and logical indexing.

Data Frame Column Slice

A tutorial on retrieving a collection of column vectors in a data frame with the single square operator. Discussion on usage of numeric and name indexing.

Data Frame Column Vector

A tutorial on retrieving individual column vectors in a data frame with the double square operator.

Named List Members

A tutorial on retrieving list slices and accessing list members by their names. Also explains the technique of search path attachment in R.

Logical Index Vector

A tutorial on how to retrieve vector slices by filtering with a logical index vector.

R Introduction

fractal-12hWe offer here a couple of introductory tutorials on basic R concepts. It serves as background material for our main tutorial series Elementary Statistics with R.

Data Frame

A tutorial on the concept of data frames in R. Using a build-in data set sample as example, discuss the topics of data frame columns and rows. Explain how to retrieve a data frame cell value with the square bracket operator. Plus a tips on how to take preview of a data frame.

List

A tutorial on the concept of lists in R. Discussion on list creation, retrieving list slices with the single square bracket operator, and accessing a list member directly with the double square bracket operator.

Combining Vectors

A tutorial on how to combine two vectors into a new vector, and the implication of value coercion.

Vector Arithmetics

A tutorial on how to perform memberwise arithmetics operations on vectors and explains the vector recycling rule.