Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Regex "dot" crashing Rstudio with separate #50
I caused an issue with separate yesterday. While tidying, I gathered a series of columns into a single column that looks like this,
My desire is to separate this column by "." but the following was causing RStudio to hang and then crash,
After some investigation I realized my mistake by remembering that "dot" means match everything in regular expressions. So I'm breaking separate by supplying it the worst possible regex. Changing that line to
I imagine that other people will run into this issue also by following their intuitions for the separator argument. Had the column been "X1996@04", sep = "@" would have worked, and in the manner I initially expected would work with "."