Subsetting lists via logical index vectors

后端 未结 2 1533
没有蜡笔的小新
没有蜡笔的小新 2021-01-19 17:36

I have a complex list and need to select a subset from it, based on the value of a boolean element (I need records with hidden value e

2条回答
  •  死守一世寂寞
    2021-01-19 17:39

    Data frames are indexed using two numbers. To only select rows, you need to do:

    data$startups[data$startups$hidden == FALSE, ]
    

提交回复
热议问题