Advertisement
Guest User

Untitled

a guest
Oct 13th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. #creating a tibble using data in 'commits'
  2. tidy_commits = tibble(commitnames = commits) %>%
  3. hoist(commitnames,
  4. sha = "sha",
  5. metadata = "commit",
  6. stats = "stats",
  7. com_files = "files") %>%
  8. hoist(metadata,
  9. author = "author",
  10. message = "message") %>%
  11. hoist(author,
  12. name = "name",
  13. date = "date") %>%
  14. hoist(stats,
  15. total_changes = "total") %>%
  16. unnest_longer(com_files) %>%
  17. hoist(com_files,
  18. filename = "filename") %>%
  19. select(sha, name, total_changes, filename, message, date)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement