We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
vroom::vroom_lines is unable to ignore quoted newlines when trying to count lines of a ISO-8859-1 encoded csv that contains quoted newlines.
library(data.table) total_rows <- fread(full_claims_file(part), select = 1L, header = TRUE)[, .N] print(paste("Total Rows via fread:", total_rows)) library(vroom) # Function to count rows using vroom count_rows_vroom <- function(file_path) { total_lines <- length(vroom_lines(file_path, altrep = TRUE, progress = FALSE)) return(total_lines - 1L) # subtract 1 for the header } # Use the function to count total rows total_rows <- count_rows_vroom(full_claims_file(part)) print(paste("Total Rows via vroom_lines:", total_rows))
It counts the following: [1] "Total Rows via fread: 11777674" [1] "Total Rows via vroom_lines: 11801846"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
vroom::vroom_lines is unable to ignore quoted newlines when trying to count lines of a ISO-8859-1 encoded csv that contains quoted newlines.
It counts the following:
[1] "Total Rows via fread: 11777674"
[1] "Total Rows via vroom_lines: 11801846"
The text was updated successfully, but these errors were encountered: