Paul Ibrahim
Paul Ibrahim

Reputation: 433

How do I filter data that are words?

I apologize for the confusing phrasing of the question, but I wasn't quite sure how to state it. Essentially, I am trying to use the filter() function form the dplyr package in order to filter my data so that the remaining data fulfills a certain requirement. The column of data that I wish to filter the rest of the data by is non-numerical. How can I filter the data using this column? The code I attempted to use is below:

hplayer_1<-filter(brim, playerId="ff42baa6-89ef-11e6-8e45-a45e60e298d3")

I apologize if this has already been asked.

Upvotes: 0

Views: 106

Answers (1)

OTStats
OTStats

Reputation: 1868

In order to filter you have to use '=='.

Try:

hplayer_1 <- filter(brim, playerId == "ff42baa6-89ef-11e6-8e45-a45e60e298d3")

Upvotes: 2

Related Questions