Home > database >  how to get the variable list from each data frame in a list
how to get the variable list from each data frame in a list

Time:09-10

I have a list of df, and I would like to rename the df as df1, df2, df3. and then create a summary like below to capture the variables in each df. What should I do?

enter image description here

I tried to use map to setNames for the data frames in lst, but I must do it in the wrong way. my current codes set variable names to df1, df2, def3.

  •  Tags:  
  • r
  • Related