strsplit in R with a metacharacter
问题 I have a large amount of data where the delimiter is a backslash. I'm processing it in R and I'm having a hard time finding how to split the string since the backslash is a metacharacter. For example, a string would look like this: 1128\0019\XA5\E2R\366\00=15 and I want to split it along the \ character, but when I run the strsplit command: strsplit(tempStr, "\\") Error in strsplit(tempStr, "\\") : invalid regular expression '\', reason 'Trailing backslash' When I try to used the "fixed"