I have split my data frame to 100 tibbles as below. There are 10 variables in each tibble including class_name. What is the optimal way to create a folder named as each tibble, and re-split each tibble into class_names and save as separated CSV.
I have tried several combinatin of lapply(finction(x), paste0()) but failed.
So assuming that the split dataframe be like this:
MyDF                          Variables
1_A →   tibble with 10 rows class_name  Green, purple, 
        …
2_B …                          type     
3_C                             ..  
..                              .   
100_XX                              .
So the expected output is:
/1_A/   →   1_A.Green.csv
                1_A.purple.csv
                1_A. ….
/2_B/   …       2_B.yellow.csv  
                 …
..      
100_XX
