Df:
df <- tibble(
a = c("z", "x", "y"),
b = c("m", "n", "o"),
c = c("p", "q", "r")
)
-I would like to see the result of names(.) (to inspect) in:
df %>%
set_names(c(names(.)[1], unlist(.[2, 2:3])))
-I know it is c("a", "b", "c"), or the result in unlist(.[2, 2:3]). This is an example, I want to apply the idea in any operation in R. Is there something out there? I want to have a deep sense of what some function is doing.
