-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue with whitespace parsing in read_table #1118
Comments
The function analogous to This is mentioned in
|
Just a side note for clarification:
I don't think that's true, if I'm interpreting you right. With For example, if
then # A tibble: 4 x 4
NAME X Y Z
<chr> <dbl> <dbl> <chr>
1 very-long-entry 1 2 3
2 short 1 1 2.3
3 fi fi fo fum 3 23 101
4 something 3 -1 s 0 while # A tibble: 4 x 4
NAME X Y Z
<chr> <chr> <chr> <chr>
1 very-long-entry 1 2 3
2 short 1 1 2.3
3 fi fi fo fum
4 something 3 -1 s |
Things have changed since this issue was current. https://readr.tidyverse.org/news/index.html#deprecated-or-superseded-functions-and-features-2-0-0 In readr 2.0.0, released 2021-07-20 (after this issue thread concluded):
|
Thanks. I got here from a search, and was confused for a bit, so thought I'd make note for others who might land here too. Thanks for clarifying. |
Hi,
I've just completed a Genome Wide Association run of PLINK! | v1.07 | 10/Aug/2009
One of the output files there is space delimited and after some googling, I found that read_table is the tidyverse solution. I'm running 1.3.1 of readr in R 4.0.0. I've tried the following (the head -100 of the file can be found attached here for a test).
assoc_readr <- read_table("readr_test.txt", col_names = TRUE)
this one parses the first 3 columns correctly and then lumps the last 7
assoc_base <- read.table("readr_test.txt", sep = "" , header = T)
this one does it right. 10 columns parsed on whitespace. the whole file is just shy of a gig, so I had wanted to use tidyverse to load it in (love that progress bar!)
(https://github.com/tidyverse/readr/files/5012278/readr_test.txt)
I was able to get it all sorted out with base R, but wanted to make an issue so that it can be fixed if it is a larger problem. cheers!
The text was updated successfully, but these errors were encountered: