Manipulate data frame inside a list

后端 未结 1 1913
醉梦人生
醉梦人生 2021-01-24 14:05

this is presumably a simple question, but I have been unable to find an answer. I want to delete a column of a dataframe that is inside a list.

x1<- rnorm(1         


        
相关标签:
1条回答
  • 2021-01-24 14:41

    Instead of

    l1[1] <- data.frame(l1[1])[,-1]
    

    use

    l1[[1]] <- data.frame(l1[1])[,-1]
    
    0 讨论(0)
提交回复
热议问题