Common Transformation Scenarios

Multiple Transformations

We wish to carry out multiple data transformation operations on the same data frame.

df_2 = df %>%
  mutate(
    col_4 = !col_3,
    col_5 = abs(col_2),
    col_6 = round(col_1, 2),
    col_7 = col_5 / col_6
  )
SQL
I/O