The object state.x77 is a dataset that is supplied with R. It contains information about the population, income and other factors for each US state. You can see its values by typing its name (in an ordinary RStudio or R session).

  1. Inspect the dataset: store its first five values in an object called first77 and store its class in an object called class77.
  2. Find the standard deviation of each column and store them in an object called stdev77.

(from: Cotton, 2013, Learning R, O’Reilly)