Let's say I've downloaded a list from a random URL with the hhtr function and gives a response with three columns (salary, health...).
I have these four lines of code which I want to execute in the tidyverse environment.
dataframe_1 <- as.data.frame(response$salary)
dataframe_2 <- as.data.frame(response$health)
dataframe_3 <- as.data.frame(response$travel)
binded_df <- bind_cols(dataframe_1, dataframe_2, dataframe_3)
What I'm looking for is something like this:
binded_df %>%
"get the three columns in a single dataframe without creating three separate
df and then combine them"
Extra question:
And in a scenario that this code is in a function with unknown variables and only on variable per column. How would that look like?
