# NOT RUN {
test_df <- data.table(
x = c(1,2,3),
y = c(4,5,6),
z = c("a", "b", "c"))
test_df %>%
pivot_longer.(c(x, y))
test_df %>%
pivot_longer.(cols = -z, names_to = "stuff", values_to = "things")
# }
Run the code above in your browser using DataLab