LoslegenKostenlos loslegen

Asking questions from a list

One of the great things about purrr is you can easily move from having a question about the data to an answer, with just a few lines of code. Here you are going to use the gh_users data to ask three questions:

  • Which user joined GitHub first?
  • Are all the repositories user-owned, rather than organization-owned?
  • Which user has the most public repositories?

In this exercise, your map_*() knowledge is really tested, so make sure to reflect on all the different flavors of map_*() and how they should be used.

Diese Übung ist Teil des Kurses

Foundations of Functional Programming with purrr

Kurs anzeigen

Interaktive Übung

Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.

# Determine who joined github first
map___(___, ~___[[___]]) %>%
      set_names(map___(___, ___)) %>%
    sort()
Code bearbeiten und ausführen