Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

posts/07_janitor_showcase/07_janitor_showcase #15

Open
utterances-bot opened this issue Dec 29, 2022 · 5 comments
Open

posts/07_janitor_showcase/07_janitor_showcase #15

utterances-bot opened this issue Dec 29, 2022 · 5 comments

Comments

@utterances-bot
Copy link

Albert Rapp - Showcasing the janitor package

I demonstrate a couple of functions from the janitor package I find quite useful

https://albert-rapp.de/posts/07_janitor_showcase/07_janitor_showcase.html

Copy link

rccline commented Dec 29, 2022

Interesting: Your code: xl_file <- readxl::read_excel('dirty_data.xlsx', skip = 1) would run when executing from the code chunk, but it would not render with Quarto. I kept getting the error that file could not be found.

Copy link
Owner

Hi Robert,

this sounds like a working directory problem to me. It sounds like when you're executing the code chunk manually (likely with code output in the console), then the file is in the same working directory. Is this the same directory that the Quarto file is in? By default, Quarto usually uses the Quarto file's location as working directory while rendering.

  • Albert

@rccline
Copy link

rccline commented Dec 30, 2022 via email

Copy link

fjodor commented Jun 24, 2024

Nice write-up again, Albert - thank you! Yes, janitor is great. Recently got asked about the rounding issue, my top suggestion was using janitor.

That exact topic led to an awkward, surprising, memorable moment some time ago when I taught an R workshop in Dresden (East Germany): I was busted as originating from the Western part (south, in fact, grew up near Munich). I showed rounding in R, using round(3.5). The participant, who had studied Math in the GDR, asked about rounding 2.5. I didn't get why she would want to know that - it seemed obvious to me. Until I tried it out ... To which she said, "Ah, you're a Wessi!"

https://www.youtube.com/watch?v=WzPmjvi6rr0

@AlbertRapp
Copy link
Owner

That's fascinating :D I didn't know there was this cultural difference between West and East Germany.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants