0

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.

2
  • Lets say your data set is **brim** you would say brim %>% filter(playerId == "ff42baa6-89ef-11e6-8e45-a45e60e298d3") Commented Jun 29, 2018 at 17:16
  • 2
    You probably just need to use == not =.
    – tyluRp
    Commented Jun 29, 2018 at 17:17

1 Answer 1

2

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

Try:

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.