Statistical Analysis: an Introduction using R/R/Constructing vectors

Constructing vectors
One of the most fundamental objects in R is the vector. This is a collection of multiple measurements of the same type, so can be used to store data variables. R provides several ways to create a vector
 * For a simple sequence of numbers from a to b, the easiest way is to use the notation a:b.
 * Many functions return vectors. Two of the most useful are "seq" and "c". The function "seq" produces seq uences of numbers, similar to a:b, but with more flexibility. The function "c" c oncatenates objects together into a vector, and so can be used to construct an arbitrary vector.