O'Reilly logo

Data Analysis with R - Second Edition by Tony Fischetti

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exercises

  • Write a function called dt_table similar to the table function in base R. The arguments will be a data.table, and a string specifying a column name. Do the same thing for tibbles and call it dp_table.
  • Read some of the documentation for data.table and dplyr/tidyr . Of the former, learn about .SD and .SDcols. Of the later, learn about the separate_ functions. These are life-savers.
  • Learn about some of the other popular packages of the tidyverse. What do all of these have in common, again?
  • Describe the four major voting bloc "cleavages" defined by Lipset and Rokkan in Party systems and voter alignments. Since its publication in 1967, have any other potential cleavage points emerged in your nation or state? How do these cleavages manifest ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required