Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #creating a tibble using data in 'commits'
- tidy_commits = tibble(commitnames = commits) %>%
- hoist(commitnames,
- sha = "sha",
- metadata = "commit",
- stats = "stats",
- com_files = "files") %>%
- hoist(metadata,
- author = "author",
- message = "message") %>%
- hoist(author,
- name = "name",
- date = "date") %>%
- hoist(stats,
- total_changes = "total") %>%
- unnest_longer(com_files) %>%
- hoist(com_files,
- filename = "filename") %>%
- select(sha, name, total_changes, filename, message, date)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement