Removing attributes of columns in data.frames on multilevel lists in R

前端 未结 6 543
太阳男子
太阳男子 2020-12-17 14:47

How do I remove the attributes of the following columns of data.frames on a nested list in R on the fly?

List of 1
 $ 0021400001:List of 19
   $ GameSumma         


        
6条回答
  •  庸人自扰
    2020-12-17 14:59

    It's a hack but worked in my case.

    lapply(my_list, FUN=function(x){data.frame(as.matrix(x),stringsAsFactors = F)})
    

提交回复
热议问题