jeudi 11 février 2016

R: Remove all encoded text from a string

In R, I have strings that have encoded junk within, such as

"based on the unique spectral \xfc\xbe\x8e\x93\xa0\xbc\xfc\xbe\x98\xa6\x90\xbc\xfc\xbe\x99\xa6\x8c\xbcfingerprints\xfc\xbe\x8e\x93\xa0\xbc of their biochemical composition"

Is there an easy way to strip the string of the encoded junk, regardless of what the junk is?

Aucun commentaire:

Enregistrer un commentaire