Answer by AkselA for What can R do about a messy data format?
The issue isn't so much how many lines of code it takes, two or five, not much difference. The question is more whether it will work beyond the example you posted here.I haven't come across this sort...
View ArticleAnswer by dww for What can R do about a messy data format?
Using data.table::fread:x = '+------------+------+------+----------+--------------------------+| Date | Emp1 | Case | Priority | PriorityCountinLast7days...
View ArticleAnswer by Rui Barradas for What can R do about a messy data format?
The short answer to the question is yes, R code can solve that mess and no, it doesn't take that much trouble. The first step after copying & pasting the table into an R session is to read it in...
View ArticleAnswer by Pawel Stradowski for What can R do about a messy data format?
As it was suggested, you could use dput to save the content of a dataframe to a file, open the file in a text editor and paste its content. An example of mtcar's dataset limited to first 10...
View ArticleAnswer by Sal-laS for What can R do about a messy data format?
Well, about this specific dataset I used the import feature in RStudio, but I took one additional step beforehand.Copy the dataset into the Notepad file.Replace all | characters with ,Import the...
View ArticleAnswer by Zheyuan Li for What can R do about a messy data format?
md_table <- scan(text = "+------------+------+------+----------+--------------------------+| Date | Emp1 | Case | Priority | PriorityCountinLast7days...
View ArticleWhat can R do about a messy data format?
Sometimes I see data posted in a Stack Overflow question formatted like in this question. This is not the first time, so I have decided to ask a question about it, and answer the question with a way to...
View Article