 events region     change id spotifysong
1  red      1      a -0.6264538  1  Irrelevant
2  red      1      a  0.1836433  2  Irrelevant
3  red      1      a -0.8356286  3  Irrelevant
```

---

#Selection - rows/observations

Four equivalent ways to get the second line of `tD`:

```r
&gt; tD[2, ] #indexing
&gt; tD[c(FALSE, TRUE, FALSE), ] #manual logical vector 
&gt; tD[tD$id == 2, ] #informative logical vector
&gt; tD %&gt;% filter(id==2)  # Using tidyverse
```


```
  pill events region    change id spotify