0

I have a dataframe k with a column d full of character elements and a list d' containing the names that I'm interested in.

From what I found, this seemed to be simple - How to subset dataframe using string values from a list?

The answer ought to be:

k <- k[k$d %in% d']

The result of which is:

A tibble: 0 × 39
... with 39 variables: ... d < chr > ...

I'm thinking there's something going wrong in the data, but I wanted to make sure I wasn't doing something wrong.

Community
  • 1
  • 1
MokeEire
  • 638
  • 1
  • 8
  • 19

0 Answers0