Data science comprises a wide array of different statistical methods. Using examples from sociology we demonstrate how to apply these methods via R, a freely accessible digital infrastructure for the collection and analysis of data.