Exercises
- Write a function called
dt_table
similar to thetable
function in base R. The arguments will be adata.table
, and a string specifying a column name. Do the same thing fortibbles
and call itdp_table
. - Read some of the documentation for
data.table
anddplyr
/tidyr
. Of the former, learn about.SD
and.SDcols
. Of the later, learn about theseparate_
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 themselves in political party differences?