how to get rid of parsing errors in read_csv?

Hello,

I would like to know what is the safest and more efficient way to get rid of the parsing errors in read_csv.

I see that problems(mydf) actually returns the row numbers of the offending lines. However there are no row numbers in the data. Should I do something like:

df %>% filter(!row_number() %in% problems(df)$row)

Is there better than that?
Thanks!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.