You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
564B

  1. ```{r libs}
  2. library(tidyverse)
  3. # library(lubridate)
  4. ```
  5. # Transform
  6. First the tidy-ed data are read from the Rds and exposed in the global environment.
  7. ```{r import}
  8. readRDS("Data/tidy.rds") %>%
  9. list2env(envir = globalenv())
  10. ```
  11. This is where you would transform your data.
  12. Destructive transformation are allowed here, feel free to experiment!
  13. ```{r transform}
  14. data %>%
  15. mutate() %>%
  16. select() %>%
  17. filter() -> data
  18. ```
  19. Data are exported again in Rds, after transformation.
  20. ```{r export}
  21. list(data = data) %>%
  22. saveRDS("Data/transformed.rds")
  23. ```