Hello dear forum members,
I am seeking your help with the following task. I have a data set that contains about 16,000 individual tweets stored in a string variable called content (%846s). Some of the tweets contain one or more hashtags denoted with # (e.g., "text #hashtag1 #hashtag2") I would like to remove all hashtags from content and store them in separate individual string variables hashtag1, hashtag2, hashtagN.
Thankfully,
Anton
P.S. Because of the character limit, I cannot use -dataex-, so I am posting a couple exemplar tweets below:
I am seeking your help with the following task. I have a data set that contains about 16,000 individual tweets stored in a string variable called content (%846s). Some of the tweets contain one or more hashtags denoted with # (e.g., "text #hashtag1 #hashtag2") I would like to remove all hashtags from content and store them in separate individual string variables hashtag1, hashtag2, hashtagN.
Thankfully,
Anton
P.S. Because of the character limit, I cannot use -dataex-, so I am posting a couple exemplar tweets below:
Code:
Got to hea Hear how NBA legend Grant Hill managed his postsurgical pain without using opioids. #OurChoicesMatter #adhttp://h3.sml360.com/-/2u0rt Too many families are missing a loved one lost to opioids this holiday weekend. Help us amplify their voices as we demand #billionsnotmillions #hearmyroar #wagingaroar #notonemore #fedup #facingaddiction http://ow.ly/ExaS30lM3Kx Physical therapy as an alternative to #opioid use in #painmanagement has gained national attention as more light shines on #addiction, overdose and death due to opioids. @ohiouhttp://goo.gl/C15FWhÂ
Comment