Hey, this is imy code to filter out tweets that are involved with abortion and all that kind, which is why I need a lot of keywords to cover most of the tweets.
This is my code right now.
roevwade_tweets <- dataset |>
filter(str_detect(tweet_text, "abortion|
pro choice|
pro-choice|
roevwade|
roe v. wade|
reproductive rights|
pro life|
pro-life|
womensrights|
feminism|
womensrights|
womens rights|
child|
children|
fetus|
pregnant|
pregnancy|
birth control|
birthcontrol")) |>
select(tweet_id, convers_id, tweet_date, user_screen_name, tweet_text) |>
collect()
Its working because I can definitley see a new df forming, but I´m suspicious, that it doesnt really search for all of the keywords I put in because I did some brief trials here and there. I´m pulling the data in R with the hel of arrow because otherwise R wouldnt be able to compute this. Do you know if I did something wrong?