-
Notifications
You must be signed in to change notification settings - Fork 289
Closed
Description
Hi.
Thanks for the package. It's really nice.
I have data when first 100+ rows are empty. readr can't parse this cols as expected.
To reproduce:
library(readr)
df <- data.frame(A = rep(c(NA, 1:3), each = 100, times = 2),
B = rep(c(NA, "A", "B", each = 200)))
temp_file <- tempfile(fileext = ".csv")
write_csv(df, temp_file)
df2 <- read_csv(temp_file)
head(problems(df2))
#> row col expected actual
#> 1 101 1 T/F/TRUE/FALSE 1
#> 2 102 1 T/F/TRUE/FALSE 1
#> 3 103 1 T/F/TRUE/FALSE 1
#> 4 104 1 T/F/TRUE/FALSE 1
#> 5 105 1 T/F/TRUE/FALSE 1
#> 6 106 1 T/F/TRUE/FALSE 1
lapply(df, table)
#> $A
#>
#> 1 2 3
#> 200 200 200
#>
#> $B
#>
#> 200 A B
#> 200 200 200
lapply(df2, table)
#> $A
#> < table of extent 0 >
#>
#> $B
#>
#> 200 A B
#> 200 200 200 Metadata
Metadata
Assignees
Labels
No labels