InseadDataAnalytics / INSEADAnalytics

Other
122 stars 1.31k forks source link

Extract character strings #139

Open NicoChev opened 6 years ago

NicoChev commented 6 years ago

Anyone knows how to extract the elements of a character vector (i.e. only take the first word before a white space)? Thanks!

VarunKShetty commented 6 years ago

Hey.

Try strsplit.

http://www.dummies.com/programming/r/how-to-split-strings-in-r/

VK

Sent from my mobile. Please excuse brevity and typos.

On May 23, 2018 15:12, NicoChev notifications@github.com wrote:

Anyone knows how to extract the elements of a character vector (i.e. only take the first word before a white space)? Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/InseadDataAnalytics/INSEADAnalytics/issues/139, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALZ2PPIQBwTk6xdXf4wGNPxoK8SOAcdPks5t1WBYgaJpZM4UKa_I.

NicoChev commented 6 years ago

Thanks!