Get startedGet started for free

When did humans replace dogs in space?

You already know that in the early days of spaceflight, the USSR was testing rockets with dogs. You now wonder when exactly humans started replacing dogs on space flight missions. You've been given a dataset space_df with the number of both dogs (compiled by Duncan Geere) and humans in space per year from 1951 till 1970 (collected from Wikipedia).

Your goal is to create a plot that shows you the number of individuals sent into space per species. Before you can create this plot, you'll first have to introduce zero values for missing combinations of year and species.

The dplyr and ggplot2 packages have been pre-loaded for you.

This exercise is part of the course

Reshaping Data with tidyr

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Create a tibble with all combinations of years and species
full_df <- ___

full_df
Edit and Run Code