Soviet space dogs, the flight perspective
Remember the USSR space dogs dataset1? You changed it to a long format so that for every dog in every rocket launch, there was a row. Suppose you're given this tidy dataset and are asked to answer the question, "In what percentage of flights were both dogs of the same gender?"
You'll reshape and investigate space_dogs_df to find the answer.
The dplyr package has been pre-loaded for you.
1 Compiled by Duncan Geere.
यह अभ्यास पाठ्यक्रम का हिस्सा है
Reshaping Data with tidyr
इंटरैक्टिव व्यावहारिक अभ्यास
इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।
space_dogs_df %>%
# Pivot the data to a wider format
___(___, ___, names_prefix = "gender_")