I have a CSV file like this:
C, Comment1
C, Comment2
H, col_1, col_2, col_3
H, num, char, char
D, 1, a, b
D, 2, c, d
D, 3, e, f
D, 4, g, h
D, 5, i, j
F, 5 lines
how can I per-process this CSV file before importing into R? I want to skip the lines that do not start with "D" and use the third row as a header and then skip the first column
the imported data frame should be some thing like this:
col_1, col_2, col_3
1, a, b
2, c, d
3, e, f
4, g, h
5, i, j