Skip to content
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

How to eliminate comment lines from csv using fread function in R? #3493

Closed
bhavneetattri1995 opened this issue Apr 8, 2019 · 1 comment
Closed

Comments

@bhavneetattri1995
Copy link

I trying to read a CSV file which has some comment lines(start with #) along with data rows. fread function is used to read this CSV file.

config <- fread("Configuration.csv")

CSV  File

In this file number of lines are not fixed they might be changed. How to read the CSV without these comment lines.

Thanks in Advance!!!

@bhavneetattri1995 bhavneetattri1995 changed the title How to eliminate comment lines from csv using fread function? How to eliminate comment lines from csv using fread function in R? Apr 8, 2019
@MichaelChirico
Copy link
Member

this is an outstanding feature request:

#856

Please refer to there for some helpful tricks for getting around this now.

If you're still stuck, please raise the issue on StackOverflow for further help :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants