An R Introduction to Statistics

Basic Data Types

fractal-05h There are several basic R data types that are of frequent occurrence in routine R calculations. Though seemingly innocent, they can still deliver surprises. Instead of chewing through the language specification, we will try to understand them better by direct experimentation with the R code.

For simplicity, we defer discussing the concept of vector until later tutorials. Here, we use only vectors of length one for demonstration.