How can I delete component from list in R?

前端 未结 4 1538
面向向阳花
面向向阳花 2021-01-21 08:23

I am trying to remove a component from list in R, but it is not working.

I have list like this:

> myList
[[1]]
[[1]][[1]]
[1] \"Sunny\"  \"Cloudy\" \"         


        
4条回答
  •  不知归路
    2021-01-21 08:51

    You could get rid of multiple rows with a list of 220 elements lets say list[-c(69,213,214,215,216)], for a list of two list <- list[-c(1,2)]. Remember to put in as.matrix.

提交回复
热议问题