Closed github-learning-lab[bot] closed 4 years ago
a data.frame of file names and their associated hashes
@jread-usgs How would you build this dataframe?
something like this
tibble(file_path = file.path('my_dir', dir('my_dir'))) %>%
mutate(hash = tools::md5sum(file_path)
? does that work?
@jread-usgs Yes - looks like it does.
And would that create a hash for the tibble as well?
Also - a tibble is a dataframe in the tidyverse - is that right? I haven't worked much with tibbles.
data.frame(file_path = file.path('my_dir', dir('my_dir'))) %>%
mutate(hash = tools::md5sum(file_path)
would work the same
You are awesome, @hcorson-dosch! :star2: :collision: :tropical_fish:
We hope you've learned a lot in intro to pipelines II. We don't have additional exercises in this module, but we'd love to have a discussion if you have questions.
:keyboard: Activity: If you have comments or questions, add them below and then assign course lead this issue to engage in dialogue. When you are satisfied with the conversation, close this issue.