From 550f5ce7d3e4f2f31cb5bd9be2f60177ff70abd5 Mon Sep 17 00:00:00 2001 From: mine-cetinkaya-rundel Date: Fri, 24 Feb 2023 00:26:34 -0500 Subject: [PATCH] Add explanation of transformation, explain #1280 --- workflow-style.qmd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/workflow-style.qmd b/workflow-style.qmd index 6061732..88167a3 100644 --- a/workflow-style.qmd +++ b/workflow-style.qmd @@ -93,9 +93,11 @@ mean (x ,na.rm=TRUE) ``` It's OK to add extra spaces if it improves alignment. -For example, if you're creating multiple variables in `mutate()`, you might want to add spaces so that all the `=` line up. +For example, if you're creating multiple variables in `mutate()`, you might want to add spaces so that all the `=` line up.[^workflow-style-1] This makes it easier to skim the code. +[^workflow-style-1]: Since `dep_time` is in `HMM` or `HHMM` fomat, we use integer division (`%/%`) to get hour and remainder (also known as modulo, `%%`) to get minute. + ```{r} #| eval: false