Hello,
I need to perform some simple task.
I just generate three objects. From res1 to res3.
library(tidyverse)
datox=datasets::iris
datox
res1=datox %>%
group_by(Species) %>%
summarise(expansion=Sepal.Width+1)
res2=datox %>%
group_by(Species) %>%
summarise(expansion=Sepal.Width+2)
res3=datox %>%
group_by(Species) %>%
summarise(expansion=Sepal.Width+3)
bind_rows(res1,res2,res3)
Then I used the command bind_rows to join them.
But now I just want to generate the list that contains every object.
I tried doing It with paste0.
But when I use that list, I received an error:
list_res=paste0("res",1:3,"")
bind_rows(list_res)
Error: Argument 1 must have names.
Run `rlang::last_error()` to see where the error occurred.
I pretend to repeat this tak with 100 object, so that's why I need to generate the list declaring all the objects for joining.
Thanks for your time and interest, community.
Have a nice weekend.