hcorson-dosch-usgs / ds-pipelines-2

https://lab.github.com/USGS-R/scipiper-tips-and-tricks
0 stars 0 forks source link

What's next #9

Closed github-learning-lab[bot] closed 4 years ago

github-learning-lab[bot] commented 4 years ago

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.

hcorson-dosch-usgs commented 4 years ago

a data.frame of file names and their associated hashes

@jread-usgs How would you build this dataframe?

jordansread commented 4 years ago

something like this

tibble(file_path = file.path('my_dir', dir('my_dir'))) %>% 
   mutate(hash = tools::md5sum(file_path)

? does that work?

hcorson-dosch-usgs commented 4 years ago

@jread-usgs Yes - looks like it does.

image

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.

jordansread commented 4 years ago
data.frame(file_path = file.path('my_dir', dir('my_dir'))) %>% 
   mutate(hash = tools::md5sum(file_path)

would work the same