I'm trying to read a csv table into R, but I get the following error "line 195 did not have 31 elements" however, when I check , both in Python and through copying the line into R as a string, the line (and the surrounding lines) definitely all have 31 elements.
Is anyone able to hazard a guess as to why R is flagging an incorrect number of lines?
Below is the line that is causing it to crash - supposed to have 31 elements, comma delimited
135411,single nucleotide variant,NM_001129727.2(PLEKHG4):c.1574A>G (p.Asp525Gly),25894,PLEKHG4,HGNC:24501,Likely benign,0,-,8044843,-,RCV000117986,MedGen:CN169374,not specified,germline,germline,GRCh37,NC_000016.9,16,67318242,67318242,A,G,16q22.1,no assertion criteria provided,1,,N,UniProtKB (protein):Q58EX7#VAR_050510,2,129965
The code I am using is:
t2 <- read.table("/Users/NAME/Desktop/variant_summary.csv", sep = ",")
Download link for first 200 lines of the csv file: https://drive.google.com/file/d/1_iUeGkyQwPvm3K2B5kfakhneuvpXpPYg/view?usp=sharing
Can you provide the table up to that line for download?
Yes, thanks for replying. I've amended my original post with a link to the download for the first 200 lines.